update all ternary fns