Gonzalez, who came to this country illegally with his family when he was 3, was released on parole and promptly deported to Tijuana, Mexico, upon his release last week. The Los Angeles Times said he will work as a church janitor and in gang intervention.

Both court decisions sped up a slow evolution in the way the U.S. treats minors who have committed crimes. Although Gonzalez was the youngest person ever given a life-without-parole sentence in Orange County, California and the U.S. already had the harshest youth offender laws in the world at the time.

The United States was the only country in the world (pdf), as of 2013, that allowed minors to be incarcerated for life without the possibility of parole, according to the Sentencing Project. Around 2,500 were serving such sentences. The U.S. and Somalia are the only countries not to ratify the 1989 United Nations Convention on the Rights of the Child, which, among its provisions, prohibits life without parole for children.

The U.S. Supreme Court’s decision in 2012 marked the most distinctive turning point in this country’s attitude about locking up kids forever. Justice Elena Kagan, writing for the majority in Miller wrote,

“Mandatory life without parole for a juvenile precludes consideration of his chronological age and its hallmark features—among them, immaturity, impetuosity, and failure to appreciate risks and consequences. It prevents taking into account the family and home environment that surrounds him—and from which he cannot usually extricate himself—no matter how brutal or dysfunctional.”

Gonzalez was helped by two new California laws. Senate Bill 9, passed in 2012, allows inmates who were sentenced to life in prison but were under 18 at the time of their offense to petition for resentencing. Senate Bill 260 says a youthful offender sentenced to life can seek parole after serving 25 years and the “diminished culpability of juveniles as compared to adults” should be given “great weight.”

Gonzalez was convicted of murder in 1993 after a carjacking in Orange County went awry and one of his two companions shot the 49-year-old teacher’s aide in the head. They wanted the car to commit a drive-by shooting. Gonzalez was not the shooter, but the law states that any participants in a robbery that ends in death are liable for a murder charge.

Orange County Superior Court Judge Thomas Goethals resentenced Gonzalez in December 2013 to 25 years to life and given credit for time served. He was approved for parole last October.