aggregate_main