added isLeaf, disabled KNNFiltering