abstract the grouping of shipments