The teen was seeing King’s court as part of a visit organized by The Greening of Detroit, a nonprofit environmental group. During the visit, King noticed the girl falling asleep, WXYZ reported.

“You fall asleep in my courtroom one more time, I’m gonna put you in back, understood?” the judge said, according to video of his remarks.

King then had the girl change into jail clothes and wear handcuffs.

“It was her whole attitude and her whole disposition that disturbed me,” the judge told WXYZ. “I wanted to get through to her, show how serious this is and how you are to conduct yourself inside of a courtroom.”