before paginator