1st version for commit
for tfidf