A group of inmates picking up trash along a road in south Alabama came together last week to give a stray dog something they don’t currently have — freedom, specifically freedom from the large plastic jar stuck on his head.

Cpl. Joshua Myers with the Geneva County Sheriff’s Office says a road crew was picking up trash on the side of East County Road 4 Thursday morning when they spotted a dog motionless on the ground.

As the inmates approached, the dog got up and began blindly running around, Myers told WSFA. The inmates were able to catch him, hold him down and free his head from the jar.

Once his head was freed, the dog ran off and the inmates couldn’t catch him.

Myers said the dog looked healthy.

WSFA reported one person has called the sheriff’s office to say they believe it’s their dog that has been missing for about a week.

Inmates in the Geneva County Jail with minor charges are allowed to work on road crews picking up trash as community service.

In addition to saving the dog, Meyers said the work crew on the same day found someone’s missing wallet. It has been returned to its owner.