teh logic was inverted