refactor bag in paginator