added boolean function