rebuilding the word_set