updating value on init