output proper aggregates