fixed for loop initial declarations