update vararible