make new methods for paging, but here is a logic in service