added for loop syntax