A judge who ordered a woman to drop her pants and decided a custody dispute by flipping a coin was removed from the bench by the Virginia Supreme Court on Friday. The decision against Juvenile and Domestic Relations Court Judge James Michael Shull of Gate City was unanimous.

“Unless our citizens can trust that judges will fairly resolve the disputes brought before our courts, and treat all litigants with dignity, our courts will lose the public’s respect and confidence upon which our legal system depends,” Justice Barbara Milano Keenan wrote.