removed enhanced for loops