adjust pagination behavior