ternary should work