fixing the  cart code