group code common to all Aggs