added ability to aggregate by sum