for loop closure