fetching better pagination get post function