complete the pagination