small change to cart method