★refactoring paginate