replaceFun