finish tfidf part