boolean logic is *hard*!