setup ternary