paginate solution