is there any reason to make these declarations outside of the for loop? 
The variables are only used inside the loop