changed replace_word