fix defaggregatefn to use the aggregator class