Replace intermediate List to Iterator