attempts to make filter less fragile