closing on iterators