fixed a couple of the iterator higher order functions