support chaining on setAggregateFunction()