added collection support for aggregation