use each (rather than _.each) internally

This is the only place we use `_.each` rather than `each`.