pagination params refactoring