War Aero, was also the president of Air Chicago. The memorandum asserted further that because she was unable to collect on the judgment from War Aero, plaintiff filed the instant complaint seeking to reform the insurance policy to add War Aero as a named insured.
These factual assertions in the memorandum supporting defendants’ motion to dismiss were not included in the complaint or elsewhere in the record and were not supported by affidavit.
On July 18, 1990, the trial court granted defendants’ motion and dismissed the complaint with prejudice, finding that plaintiff’s action was barred under the doctrine of laches and by her failure to bring suit within the applicable limitations period. Plaintiff has appealed the dismissal of her complaint with prejudice.
Because the trial court made no reference to the section under which plaintiff’s complaint was dismissed, we must determine whether dismissal was proper under either section 2—615 or 2—619.
Under section 2—615, a defendant may seek dismissal of a complaint for failure to state a cause of action and must specify why the pleading is legally insufficient. (Ill. Rev. Stat. 1989, ch. 110, par. 2—615.) A motion brought under section 2—615 admits all well-pleaded facts in the complaint and attacks only the legal sufficiency of the complaint. (Uptown Federal Savings & Loan Association v. Kotsiopoulos (1982), 105 Ill. App. 3d 444, 449, 434 N.E.2d 476, 480.) Factual defenses, supported by affidavit, may not be raised under this section, and the court may consider only the allegations of the complaint. Davis v. Weiskopf (1982), 108 Ill. App. 3d 505, 509, 439 N.E.2d 60, 63.
Initially, we note that the cause before us is not an action for damages or for benefits under the policy issued by defendant. Rather, the allegations in the complaint are limited to those which assert a claim for reformation of the contract of insurance based upon a mutual mistake of fact.
An action to reform a written agreement rests upon the theory that parties came to an understanding, but in reducing it to writing, through mutual mistake or through mistake of one party and fraud by the other, some provision agreed upon was omitted. The action is brought to change the instrument as written so it conforms to the contract agreed upon by inserting the omitted provision. Harley v. Magnolia Petroleum Co. (1941), 378 Ill. 19, 28, 37 N.E.2d 760, 765; Briarcliffe Lakeside Townhouse Owners Association v. City of Wheaton (1988), 170 Ill. App. 3d 244, 251, 524 N.E.2d 230, 235.
To state a cause of action for reformation of a contract, the plaintiff must assert (1) the existence and substance of an agreement