Undo ternary