updatevariables