add aggregate stats helper