converted deprecated grep filter to conditional drop filter