when iterator runs out, starts iterator over. deleted dead code