added term frequency
distance