ternary, add gz