next and previous operation added to iterator