invert redlight logic