fixing up paging all method