patched in paginated query