for loops updated