making filter usage more intelligent