basic aggregation of statistics