try pagination function