trying (and failing) to fix reduceEach as well