updating value mapping