update the stock varation after event functions