makes changes to cart