change sequences to iterators in init