typo in ternary