boolean logic fail