end of pagination step