clarify boolean logic