modify params for pagination