simple variable update