added paging queries