added boolean function with return value