silly boolean logic snafu