reorder foreach functions for combining processors

the make them easier to compare against the loop
version we're trying to go to