cleaning up for loop