update for loops