delivered the opinion of the court:
Defendant, Chayse R. Keller, appeals from the dismissal of his “Petition for Declaratory Judgment.” He asked the trial court to find that the Department of Corrections was misapplying the mandatory supervised release (MSR) provision of the Unified Code of Corrections (730 ILCS 5/5 — 8—1(d) (West 2000)) in interpreting his sentence. He now asserts that the court erred in dismissing his petition summarily pursuant to section 122 — 2.1 of the Post-Conviction Hearing Act (Act) (725 ILCS 5/122 — 2.1 (West 2002)). Because the “Petition” was, in substance as well as in form, a complaint for declaratory judgment, the court erred in reconstruing it as a postconviction petition and in using the procedures of section 122 — 2.1 of the Act to dismiss it. We vacate the dismissal and remand for further proceedings on defendant’s petition.
BACKGROUND
Defendant was charged by indictment with one count of armed robbery while armed with a firearm (720 ILCS 5/18 — 2(a)(2) (West 2000)). He pleaded guilty pursuant to a fully negotiated plea agreement in which the State agreed to amend the indictment to allege that defendant was armed with a dangerous weapon and to recommend a sentence of 12 years’ imprisonment. Before accepting the plea, the court admonished defendant that, under the amended indictment, the sentencing range would be 6 to 30 years’ imprisonment, whereas under the original indictment, both the maximum and minimum would be 15 years higher. It also asked defendant if he understood that “on a sentence to the Department of Corrections you would also serve 3 years of mandatory supervised release.” Defendant stated that he understood, and the court accepted the plea. The court sentenced defendant to 12 years’ imprisonment.
On May 2, 2003, defendant filed a document entitled “Petition for Declaratory Judgment.” He named the warden of the Dixon Correctional Center, the chairman of the Prisoner Review Board, and the Director of Corrections as respondents, and asked the court to “find that respondents [ ] are misapplying the MSR statute contrary to legislative intent.” He contended that “the sentencing judge must have intended that any imposition of MSR would be inclusive within petitioner’s sentence.” (Emphasis in original.) The respondents interpreted his sentence to require him to serve his term of MSR after he completes his term of imprisonment, and their “misapplication and Administrative imposition of the 3 year term of MSR attached to the end of his judicially imposed sentence has effectively increased his sentence without due process of law.” (Emphasis in original.) Defendant also contended that the Unified Code of Corrections’ delegation to the Prisoner Review Board of the power to reimprison defendants who violate the terms of their MSR is unconstitutional. The latter contention seems to be a matter of pleading in the alternative: “Fundamental Fairness should apply and [the court should] either rule section 5 — 8—1(d) of the Unified Code of Corrections unconstitutional or have the petitioner’s sentence modified [so that his term of MSR is included within his term of imprisonment, rather than added to the end of it].”
The court summarily dismissed the petition pursuant to section 122 — 2.1 of the Act. Defendant appeals, contending that the dismissal was procedurally improper under the Code of Civil Procedure (Code) (735 ILCS 5/1 — 101 et seq. (West 2002)).
ANALYSIS
Whether the trial court followed the proper procedure in dismissing defendant’s pleading is an issue of law, and therefore our review is de novo. See Woods v. Cole,
Propriety of the Recharacterization as a Postconviction Petition
To determine what procedure the court should have applied to defendant’s pleading, we must first determine how the court should have classified it. The State cites People v. Helgesen,
Propriety of Summary Dismissal
Because the court should have treated defendant’s pleading as a complaint for declaratory judgment, an action under the Code, the issue presented here is similar to those we considered in People v. Marino,
Due Process Considerations and Summary Dismissal
Our reasoning here and in Marino, Winfrey, Pearson, and Shellstrom is in harmony with the proposition that summary dismissal under the Act is consistent with the provision of due process to those who file petitions invoking the Act. Notice of a proposed dismissal and an opportunity to respond are requirements under the Code, but are not, in a proper framework, invariable requirements for due process (see State ex rel. Schatz v. McCaughtry,
Summary dismissal provides due process in a framework that makes it fair. See Schatz,
Similarly, section 122 — 2.1 of the Act clearly states that the court shall evaluate a postconviction petition on its own and need give the defendant notice only after it has acted. 725 ILCS 5/122 — 2.1 (West 2002). A defendant petitioning under the Act can draft his or her petition with the advance knowledge that he or she has only one opportunity to make his or her case to the court. However, a defendant who files a pleading under the Code will find nothing to suggest the possibility of summary dismissal, and thus such a dismissal is patently unfair.
Our recognition of the importance of a procedural framework that has been clearly fixed in advance leads us to reject the reasoning of People v. Bramlett,
We are mindful of the consequence of holding that summary dismissal (often done as here, by explicit referral to section 122 — 2.1 of the Act) is not available for pleadings filed under the Code. The recurrent nature of the issue shows that our trial courts are grasping for any tool that will allow them to cope with the endless flow of prisoner pro se filings. In using section 122 — 2.1 this way, our courts are making it serve a function similar to that of legislation in other jurisdictions designed to lessen the burden on the courts of prisoner-initiated and in forma pauperis litigation. For instance, the United States Code requires district courts to screen prisoner complaints against the government to determine whether they are frivolous or malicious, fail to state claims on which relief may be granted, or seek monetary relief from defendants who are immune from such relief. 28 U.S.C. § 1915A(b) (2000). If any of these apply, the court must dismiss the complaint sua sponte (Grayson v. Mayview State Hospital,
Even under the status quo, trial courts have tools to dispose of bad pleadings expeditiously that do not require a resort to summary dismissal, such as striking the pleadings under section 2 — 612(a) of the Code (735 ILCS 5/2 — 612(a) (West 2002)). See Marino,
Harmless Error Analysis
The court erred in summarily dismissing defendant’s pleading. We will not deem that error to be harmless. In Shellstrom, we described such error as “inherently prejudicial” (Shellstrom,
Harmless error analysis is a creature of necessity, not a fundamental principle of justice. If, for instance, a reviewing court reverses a conviction because of an evidentiary error, the defendant generally must receive a new trial. That has both economic and social costs, and we have good reason to insist that the defendant show real prejudice. In cases like these, by contrast, a remand places little burden on the trial court. In this respect, the supreme court’s decisions regarding attorneys’ failures to file certificates pursuant to Supreme Court Rule 604(d) (188 Ill. 2d R. 604(d)) (e.g., People v. Janes,
When an attorney represents a defendant on a motion to withdraw a guilty plea, he or she must certify in writing that he or she has consulted with the defendant to determine the defendant’s contentions of error, has reviewed the record in the case, including transcripts of the proceedings, and has made any needed amendments to the motion. 188 Ill. 2d R 604(d). The Janes court held that Rule 604(d) was an important protection against unintended waivers of rights by defendants. Janes,
The analogy with Apprendi fails for a more basic reason: victims of Apprendi violations may have been denied the right to a jury trial, but they nevertheless could participate in their trials. What if the trial court simply declared a defendant guilty at the close of the State’s evidence? Would the Anderson court deem the error harmless if the State’s evidence were so overwhelming that nothing the defendant could have presented would have made a difference? We seriously doubt it. No matter what the ultimate merits, parties are entitled to make their cases to the courts. If that must be by a single document, fundamental fairness requires this be clear in advance. To deem an error harmless when it eviscerates the right to be heard is to allow it to annul the most basic of procedural safeguards. Whatever the merits of defendant’s claims, those claims must be heard.
CONCLUSION
For the reasons stated, we vacate the order of the circuit court of Winnebago County and remand the matter for further proceedings consistent with section 2 — 701 of the Code.
Vacated and remanded.
BOWMAN and HUTCHINSON, JJ., concur.
Notes
We also acknowledge the existence of Owens v. Snyder,
