iffy boolean logic