fixed prompt and ternary