set up start of ternary