adjust for loop