changes for loop