finished adding paginate