method paginate error