simplify shipment code