loop iterators first fix