added term document filtration