use ternary