moved a get out of the main 5 for loops