finish for loops