simplify pagination.