movereverse working with iterators