update  variable