another for loop cleanup