removed bloated for loop