fix quantity = $quantity