add aggregation by level