debugging the cart process