get a correct filter inplace