changes in the for loop