more replacement of it.next() with next(it)