toNamedAggregate