for loop cleanup