Use for each loop instead of iterator