system
Help the user with anything they need
human
Rearrange this sentence to make it more readable: "The doctor prescribed a medication for her headache, but it did not work, so she went back to the doctor and got a different medication."

Relevant data:
"The medication prescribed by the doctor did not work for her headache, so she went back and got a different one."
gpt
She went back to the doctor and got a different medication for her headache when the first one prescribed did not work.