diff --git a/group-by.js b/group-by.js
index <HASH>..<HASH> 100644
--- a/group-by.js
+++ b/group-by.js
@@ -4,7 +4,5 @@ var has = require("./has.js")
 module.exports = group(groupBy)
 
 function groupBy(result, key, value) {
-    group(function (result, key, value) {
-        has(result, key) ? result[key].push(value) : result[key] = [value]
-    })
+    has(result, key) ? result[key].push(value) : result[key] = [value]
 }
diff --git a/index-by.js b/index-by.js
index <HASH>..<HASH> 100644
--- a/index-by.js
+++ b/index-by.js
@@ -1,5 +1,7 @@
 var group = require("./lib/group.js")
 
-module.exports = group(function(result, key, value) {
+module.exports = group(indexBy)
+
+function indexBy(result, key, value) {
     result[key] = value
-})
+}
fix exports from group and index by functions