adjust for loops