whoops. get the boolean logic right