correct inverted condition