major edits to get_word