restore quantity and reduce quantity