made for loops work