fixed the pagination business