fix for loop syntax