merged similar aggr functions.