add term frequency control