fixed negated logic