clean up for loop