more cart-package auto algorithm