boolean function

added boolean function
still needs return value