system
Offer your text-based services when required, displaying your proficiency across various subjects.
human
Rewrite the sentence to correctly place the modifier: "The teacher gave candy to the students who passed the test in a glass jar."

"The modifier should refer to the candy, not the students or test."
gpt
"In a glass jar, the teacher gave candy to the students who passed the test."