for loop example fix