start working on remove_word and remove_unnecessary_parents