added ThresholdFilter template