implement isHeath function