Three teenagers from Baltimore, wrongfully convicted of killing a school student in cold blood, have been exonerated after spending more than three decades of their lives in jail.

Childhood friends Alfred Chestnut, Ransom Watkins, and Andrew Stewart were arrested in 1983, when they were 16, and subsequently convicted of gunning down a 14-year-old student at Harlem Park Junior High School in Baltimore, Maryland. Authorities said at the time that the boy was shot in the neck with a 22-caliber handgun in an attempt to steal a fancy jacket he was wearing.

The men have always insisted they were innocent. Nevertheless, they spent 36 years behind bars… until they were exonerated in court on Monday. Their release became possible after Chestnut successfully filed a request to gain access to sealed court records last year, and the state prosecutor’s office launched a review of the case.

The prosecutors discovered that during the original investigation several witnesses told the court that the murder was actually committed by a different student, a man who would eventually die in 2002. Moreover, four juvenile witnesses, who identified Chestnut, Watkins, and Stewart as the killers, failed multiple times to identify them in photo arrays before the trial.

It was also found that their testimonies may have been made under pressure from police and had been recanted. The witnesses said police officers questioned them without their parents being present.

The three friends, who have finally regained their freedom, thanked their loved ones and everyone who had helped them to fight for justice.

“I’ve been always dreaming of this day,” Chestnut told reporters.

“I sat on my bunk when I got the information and I cried,” said Stewart. “My journey is just beginning because I have to learn how to live right now.”