for loop updates