pretty long ternary