refactored _Aggregator class