ternary is bad