changed aggregator impl to use metric with parameters