Replace all occurence of numVar by the new version