setup for paginate