handle aggregation in node