boolean function

added boolean function