Update for loop