split iteration out of main file