ternary operator on correct - incorrect