before changes to cart