few changes due to adjustment of tf-idf-formula