adjust pagination