added paging argument