paginate and docs