sigh. boolean logic. gets me every time