update the replace_with_name