Please reduce this to a ternary