test the filter first