task beforefilter