ternary put in