Re: aggregation with complex function