update discount on change