some changes in topic divergence counting