aggregate segments