converts iterators to streams the right way