improve task filter