paging is working properly