A jury found David Leon Stokes, II (Stokes) guilty of attempted kidnapping and attempted robbery in Arizona state court. The jury also found the offenses to be “dangerous.” At sentencing, the trial judge opted to sentence Stokes to twenty years as a repetitive offender whose previous convictions were for non-dangerous offenses. The judge then enhanced the sentence to twenty-five years by finding aggravating circumstances. After Stokes’s habeas petition was denied in district court, we granted a certificate of ap-pealability (COA) on the issue of whether Stokes “was sentenced in violation of the Sixth Amendment pursuant to
Apprendi v. New Jersey,
I
FACTUAL AND PROCEDURAL BACKGROUND
In May 1999, the Milners pulled then-car into a convenience store parking lot. Mr. Milner went into the store while Mrs. Milner remained in the car. Stokes entered the car, grabbed Mrs. Milner’s neck, threatened her with a “blade,” and told her he was going to steal the car. Mrs. Milner grabbed the keys from the ignition and jumped out of the car, but not before Stokes slashed her neck with the “blade.” Mrs. Milner survived, and Stokes was eventually apprehended.
An Arizona state jury subsequently found Stokes guilty of attempted kidnapping and attempted robbery, both class three felonies. The jury also found the *400 offenses for which Stokes was convicted to be “dangerous.”
Stokes’s sentencing presented the Arizona state judge with two options. Because this was Stokes’s first conviction for a dangerous felony, the judge could sentence Stokes as a first-time dangerous offender under Arizona Revised Statute § 13-604(1), for a maximum sentence of fifteen years. 1 In the alternative, and in view of Stokes’s prior convictions for at least two non-dangerous felonies, the judge could sentence Stokes as a repetitive offender whose previous convictions were for non-dangerous offenses. Under Arizona Revised Statute § 13-604(D), the maximum sentence under the latter option was twenty years. 2
The judge elected the latter option after finding that Stokes had been convicted of driving under the influence, theft, and possession of a narcotic drug. The judge then enhanced the twenty-year sentence to twenty-five years under Arizona Revised Statute § 13-702(C) and § 13-702.01(E) by finding three aggravating circumstances: (1) “physical and emotional harm to the victim,” (2) “the defendant was previously convicted of felonies within 10 years immediately preceding the date of this offense,” and (3) “defendant’s 1981 convictions for kidnapping and aggravated assault ... are strikingly similar to the instant offenses.” 3 The judge ultimately sentenced Stokes to two “super-aggravated” terms of twenty-five years to be served concurrently.
Stokes appealed to the Arizona Court of Appeals, asserting, inter alia, that his sentence was “unlawful” because the jury found that his offenses were dangerous, yet the judge disregarded the jury’s findings and instead sentenced him as a non-dangerous repetitive offender, resulting in a longer sentence.
Relying on
State v. Smith,
Stokes requested post-conviction relief on a basis other than his unlawful sentence claim. His request and petitions for review were denied.
*401 Stokes then petitioned for a writ of ha-beas corpus under 28 U.S.C. § 2254 in federal district court. Citing Apprendi, he again argued that his sentence was unlawful because the judge disregarded the jury’s findings of dangerousness and opted to sentence him as a non-dangerous repetitive offender.
The magistrate judge recommended that the district court deny Stokes’s petition. The district court accepted the magistrate judge’s recommendation and concluded that Stokes was not sentenced in violation of Apprendi under the sentencing statutes as construed by the Arizona state courts.
The district court denied Stokes’s request for a COA. However, we granted a COA on the issue of “whether appellant was sentenced in violation of the Sixth Amendment pursuant to
Apprendi v. New Jersey,
II
DISCUSSION
We review a district court’s decision to deny a habeas petition
de novo
and its findings of fact for clear error.
Fowler v. Sacramento County Sheriffs Dep’t,
To obtain habeas relief under AEDPA, Stokes must show that the relevant state court decision “was contrary to, or involved an unreasonable application of, clearly established Federal law, as determined by the Supreme Court of the United States.” 28 U.S.C. § 2254(d)(1).
“[A] decision is contrary to clearly established federal law ... if the state court applies a rule that contradicts the governing law set forth in the Supreme Court’s cases or if the state court confronts a set of facts that are materially indistinguishable from a decision of the Supreme Court and nevertheless arrives at a result different from that precedent.”
Fowler,
“[Cjlearly established Federal law, as determined by the Supreme Court” refers to Supreme Court precedent at the *402 time of the last-reasoned state court decision. 6 Id. at 1034.
A. The judge did not violate Appren-di by opting to sentence Stokes as a repetitive offender whose previous convictions were for non-dangerous offenses. 7
According to Stokes, the Court of Appeals’s memorandum decision affirming the judge’s sentencing order is contrary to Apprendi in the following way: The jury found Stokes’s offenses to be dangerous. Under § 13-604(1) (the first-time dangerous offender statute), the judge could only impose a sentence of fifteen years. However, the judge opted to sentence Stokes as a repetitive offender whose previous convictions were for non-dangerous offenses. Under § 13-604(D) (the repetitive offender statute), the judge sentenced Stokes to twenty years (not counting the additional five-year enhancement based on aggravating circumstances).
Apprendi
was violated, Stokes argues, when the judge disregarded the jury’s findings of dangerousness and exposed him to a sentence greater than that allowed by the jury’s verdicts. The jury’s verdicts were sufficient to expose Stokes to a twenty-year sentence, however. In disregarding the dangerousness finding, the judge did not negate that finding. Instead, the existence or nonexistence of the crime’s dangerousness was irrelevant to the application of § 13-604(D), which requires only that the defendant have
previous
non-dangerous convictions.
See, e.g., State v. Sammons,
Contrary to Stoke’s arguments, the Arizona state courts’ interpretation of these provisions does not contradict any clearly established federal law. A statutory maximum need not be defined by every one of the facts found at trial, so long as the defendant is not “expose[d] ... to a great
*403
er punishment than that authorized” solely by those facts (or the fact of a prior conviction).
Apprendi,
B. The judge violated Apprendi by enhancing Stokes’s sentence based on aggravating circumstances found by the judge.
The sentencing judge enhanced Stokes’s sentence by finding three aggravating circumstances: (1) “physical and emotional harm to the victim,” (2) “the defendant was previously convicted of felonies within 10 years immediately preceding the date of this offense,” and (3) “defendant’s 1981 convictions for kidnapping and aggravated assault ... are strikingly similar to the instant offenses.” These findings enhanced Stokes’s sentence to twenty-five years, beyond the prescribed statutory maximum of twenty years. Because these findings were not made by a jury, the sentence violated applicable federal law.
See Apprendi,
The judge’s findings of aggravating circumstances are not covered by Apprendi’s prior conviction exception. Even if the prior conviction exception covers the finding that “the defendant was previously convicted of felonies within 10 years immediately preceding the date of this offense,” neither of the other two findings is covered by the exception because each was directed at Stokes’s present offenses, not the fact of his prior offenses.
The judge found that there was “physical and emotional harm to the victim.” This finding, directed at the present offenses, is not covered by the prior conviction exception.
See United States v. Matthews,
The judge also found that Stokes’s “1981 convictions for kidnapping and aggravated assault ...
are strikingly similar to the instant
offenses.” This finding similarly focuses on the present offenses as a basis of comparison to past offenses and is beyond the scope of the prior conviction exception.
See United States v. Kortgaard,
Because the prior conviction exception does not inoculate an enhancement predicated upon judicial factfinding, Stokes’s sentence violated
Apprendi. See Apprendi,
Ill
CONCLUSION
The district court correctly concluded that the Arizona Court of Appeals’s decision upholding Stokes s enhanced sentence as a repetitive offender was not contrary to Apprendi However, the sentencing judge committed Apprendi error when he used judicial findings to enhance Stokes’s sentence. Because the government failed to show that the Apprendi error was harmless, Stokes is entitled to habeas relief on that claim. Accordingly, we affirm in part, reverse in part, and remand for the district court to grant the habeas petition as to the imposition of the sentence enhancement predicated upon judicial fact-finding.
AFFIRMED in part; REVERSED in part; and REMANDED.
Notes
. Subsection 13-604(1) stated:
[U]pon a first conviction of a class 2 or 3 felony involving discharge, use or threatening exhibition of a deadly weapon or dangerous instrument or upon conviction of a class 2 or 3 felony when the intentional or knowing infliction of serious physical injury upon another has occurred, the defendant shall be sentenced to imprisonment as prescribed in this subsection ...
Ariz.Rev.Stat. Ann. § 13-604(1) (1999).
. Subsection 13-604(D) stated that "a person who ... stands convicted of a class 2 or 3 felony, and who has two or more historical prior felony convictions, shall be sentenced to imprisonment as prescribed in this sub-section ...” Ariz.Rev.Stat. Ann. § 13-604(D) (1999).
. Subsection 13-702(C) listed a number of aggravating circumstances that "the court shall consider.” Ariz.Rev.Stat. Ann. § 13-702(C) (1999).
Subsection 13-702.01(E) stated: "[I]f a person is convicted of a felony offense and has two or more historical prior felony convictions and if the court finds that at least two substantial aggravating factors listed in section 13-702, subsection C apply, the court may increase the maximum term of imprisonment ...” Ariz.Rev.Stat. Ann. § 13-702.01(E) (1993).
. During the course of Stokes’s direct appeal, the United States Supreme Court decided Ap-prendi.
. On appeal, Stokes raises two uncertified issues: (1) whether the trial court violated
Apprendi
by finding the fact of his prior convictions to enhance his sentence; and (2) whether the trial court violated
Apprendi
by enhancing his sentence based on a judicial finding of aggravating circumstances. We treat Stokes's opening brief raising these un-certified issues as a request to expand the COA.
See Solis v. Garcia,
We deny Stokes's request to expand the COA to include the prior convictions issue because he has not made a "substantial showing of the denial of a constitutional right[.]”
Id.
(citation omitted). In
Apprendi,
the Supreme Court expressly held,
"[ojther than the fact of a prior conviction,
any fact that increases the penalty for a crime beyond the prescribed statutory maximum must be submitted to a jury ...”
However, we grant Stokes's request to expand the COA to include the issue of whether the trial court violated
Apprendi
by enhancing his sentence based on a judicial finding of aggravating circumstances. On this issue, Stokes has made a "substantial showing of the denial of a constitutional right[.]”
Solis,
. The last-reasoned state court decision for Stokes's claim regarding the judge’s act of disregarding the jury's findings of dangerousness is the Court of Appeals’s July 20, 2000 memorandum decision. This is the last-reasoned state court decision because the state supreme court denied review on direct appeal without comment. The subsequent "minute entry" denying Stokes’s petition for post-conviction relief did not address the unlawful sentence issue, as Stokes did not raise it in his petition for post-conviction relief.
With respect to the propriety of the judge’s findings of aggravating circumstances, however, there is no last-reasoned state court decision. Accordingly, we "perform an independent review of the record to ascertain whether the state court decision was objectively unreasonable.”
Pham v. Terhune,
. Even though
Apprendi
was decided after the sentencing order,
Apprendi
nevertheless constitutes applicable, controlling federal law for purposes of this appeal. Because
"Apprendi
was decided while [Stokes's] case was still on direct review[,] ... the rule announced in
Apprendi
can be asserted by [Stokes] in a § 2254 petition.”
Schardt v. Payne,
. This conclusion is reinforced by the legislative activity surrounding § 13-702(C) and § 13-702.01(E), the applicable sentencing statutes, both of which were amended in 2005.
Pre-2005, § 13-702(C) stated that "the court shall consider the following aggravating circumstances!)]" Ariz.Rev.Stat. Ann. § 13-702(C) (1999) (emphasis added). As amended, this subsection now states that "the trier of fact shall determine and the court shall consider the following aggravating circumstances!.]” Ariz.Rev.Stat. Ann. § 13-702(C) (2005) (emphasis added).
Similarly, pre-2005, § 13-702.01(E) stated: ''[I]f a person is convicted of a felony offense and has two or more historical prior felony convictions and if the court finds that at least two substantial aggravating factors ... apply, the court may increase the maximum term of imprisonment ..." Ariz.Rev.Stat. Ann. § 13-702.01(E) (1993) (emphasis added). As amended, the subsection stated: "[I]f a person is convicted of a felony offense and has two or more historical prior felony convictions and if the trier of fact finds beyond a reasonable doubt that at least two aggravating factors ... apply, the court may increase the maximum term of imprisonment ...” Ariz. Rev.Stat. Ann. § 13-702.01(E) (2005) (emphasis added). The legislature also added subsection (J), which states that " ‘trier of fact' means a jury." Id. § 13-702.01(1). Further amendments in 2006 preserved these changes, in effect. See 2006 Ariz. Legis. Serv. Ch. 148 (West).
Under the current statutes, aggravating factors are to be found by a jury beyond a reasonable doubt, and not by the court. This change, as well as the revision to § 13-702(C), indicates that the legislature recognized that the pre-2005 versions used by the judge in this case were problematic.
