implemented a boolean filter