balancing correctness utility and safety in LLMs