ternary correction wacky

ternary correction wacky