basic history aggregation