re-implemented removing of words from dictionary