implement paging of results