An Aberdeen primary school head teacher has gone on trial accused of assaulting pupils.
Catherine Taylor denied the charges at Aberdeen Sheriff Court
Catherine Taylor, 46, denies assaulting 10 children at the school, which is not being named for legal reasons, over several years.
The first witness claimed that Mrs Taylor pulled his trousers down and held him upside down as punishment for teasing another boy.
The trial, which is taking place at Aberdeen Sheriff Court, continues.
The boy, giving evidence through CCTV, said he could not remember many details. His parents made no complaint at the time.
Depute Fiscal Helen Knipe asked the boy: "Did you have any problems at the school?"
He said: "I used to get into trouble a lot from Mrs Taylor. She once pulled down my pants and trousers and held me upside down.
"She grabbed me by the shins and just held me upside down for about five to 10 seconds.
"She used to shout at me a lot and told me I'd end up in jail when I finished school."
The boy said he had been "completely embarrassed" and that his time at primary school had been "a living hell".
Bryan Miller, a support worker at the school, told the court that he saw Mrs Taylor grab a boy's private parts and throw another boy to the ground.
Andrew Gibb, defending, suggested that Mrs Taylor did her best to get youngsters with "multiple problems" on the right path.
Mr Miller said: "I think she did a lot for the school but in the end she had little support. What she did was inappropriate."