MARTINSVILLE, Ind. (AP) — The state appeals court has upheld a 30-year prison sentence for a central Indiana teenager convicted of attempted murder in the shooting a former middle school classmate.

The appeals court ruling released Monday rejected arguments from an attorney for 17-year-old Michael Phelps that the sentence was inappropriate for the March 2011 shooting at Martinsville West Middle School.

A Morgan County judge last year convicted Phelps of shooting then-15-year-old Chance Jackson twice in the abdomen after an ongoing dispute between the two who had both dated the same girl. Jackson's mother testified that he needed multiple surgeries because shooting damaged several organs, including his liver and a kidney.