reducer changed to generator, but first test passes