completed find all words and idf value