make filter function async