implement task filter with one condition