added paging functions