added boolean function to SetFilter