iterators in stat. algorithms