fixed error in code

for loop syntax was incorrect, fixed and moving on