The sentence has been cut in half for an 11-year-old boy who pleaded guilty to plotting to kill a "mean" girl in his fifth-grade class at a Colville elementary school.

A Stevens County judge reduced the sentence Thursday to about 2-and-a-half years in juvenile detention at the recommendation of prosecutors and defense lawyers. The agreement ends an appeal that argued the boy didn't receive proper legal counsel last year.

The Spokesman-Review reports the boy is scheduled to be released in July 2015, and he'll be allowed to return to school for his eighth-grade year.

The boy and a friend were found with a knife and gun last year. They reportedly intended to kill a girl in their class "because she was mean." The other boy was convicted in November.