replaced value fn