DAVID T. PROSSER, J.
¶1. This is a review of an unpublished decision of the court of appeals,1 affirming an order of the La Crosse County Circuit Court, Ramona A. Gonzalez, Judge. The case addresses the rights of a debtor in default under Article 9 (Secured Transactions) of the Uniform Commercial Code, both before and after a declaratory judgment obtained by the secured party to declare its rights in relation to the debtor.
¶ 2. To state the case briefly, National Operating, L.P. (National Operating), the debtor in default, filed suit against Mutual Life Insurance Company of New York (MONY) and Bridgeview Plaza Partnership (Bridgeview). During this litigation, National Operating moved for partial summary judgment. MONY and Bridgeview, in turn, moved to dismiss National Oper[846]*846ating's suit on the basis of claim preclusion resulting from a declaratory judgment obtained by MONY two years earlier. The circuit court denied National Operating's motion for partial summary judgment and granted the MONY/Bridgeview motions to dismiss. The court of appeals affirmed.
¶ 3. After carefully examining the rights of a debtor in default under Article 9 of the Uniform Commercial Code (U.C.C. or the Code), as well as the scope and claim preclusive effect of the declaratory judgment issued by the La Crosse County Circuit Court in 1996, we reverse.
I. FACTS AND PROCEDURAL HISTORY
¶ 4. This case involves a series of commercial transactions among National Operating, MONY, and Bridgeview. National Operating is a Delaware limited partnership headquartered in Dallas, Texas. It is the successor to McNeil Real Estate Fund VII, Ltd., on a loan obligation to MONY.
¶ 5. MONY is a New York corporation that became the payee on a note assigned to it by the Trustees of MONY Mortgage Investors, the entity that lent money to McNeil Real Estate.
¶ 6. Bridgeview is an Illinois general partnership. It owns the Bridgeview Plaza shopping center in La Crosse.
¶ 7. In April 1978 National Operating borrowed $3,433,000 from MONY to purchase Bridgeview Plaza.2 In return for MONY's loan, National Operating [847]*847gave MONY a 30-year note (Underlying Note). The Underlying Note called for National Operating to make 359 monthly payments of $27,951 to MONY, beginning February 1,1979,3 plus a final payment of any remaining balance. However, MONY had the option of "calling" its loan and accelerating the repayment during the 15th loan year (1993).4 MONY's loan was secured by a "Mortgage and Security Agreement" on Bridgeview Plaza. The security documents included an [848]*848"Assignment of Leases and Rents" so that in the event of a default by National Operating, MONY would assume National Operating's "right, title and interest in, to and under all leases and agreements relating to the use or occupancy of the Premises."
¶ 8. In February 1990, after conferring with MONY, National Operating sold the shopping center to Bridgeview in exchange for a $5.5 million wrap-around note (Wrap Note) and a mortgage (Mortgage) on the property. This arrangement did not alter National Operating's debt to MONY. Rather, it required Bridgeview to make monthly interest payments on the Wrap Note to National Operating, and then a $5.5 million balloon payment on February 29, 2000.5 Bridgeview's monthly interest payment to National Operating exceeded National Operating's monthly payment to MONY so that National Operating was able to retain a portion of Bridgeview's monthly payments. However, the Wrap Note did not authorize National Operating to "call" for a lump sum payment from Bridgeview before February 29, 2000, unless Bridgeview defaulted.
¶ 9. In 1993, during the 15th year of the first agreement, MONY called its loan. National Operating was unable to respond by tendering a full repayment of [849]*849the balance ($2,832,861.91). Consequently, MONY considered foreclosing on the property, and National Operating considered filing for bankruptcy. Instead, the two parties agreed to renegotiate the loan. In November 1993, National Operating and MONY agreed to a "Loan Modification and Extension Agreement" (Loan Extension) and an "Assignment" (Assignment), both effective January 1, 1993, the date on which MONYs final payment had been due.
¶ 10. The Loan Extension increased the interest rate on the Underlying Note, from, 9 1/8 percent to 10 percent. In addition, National Operating agreed to pay MONY $100,000 toward the loan balance, a $25,000 loan extension fee, and MONY's legal costs of $5,725. In exchange, MONY agreed to extend the maturity date of the loan to December 31,1995.
¶ 11. The Assignment from National Operating to MONY contained three paragraphs relevant to this case. The first relevant paragraph provided that National Operating assigned "all of its right, title and interest in those certain rights and remedies granted in the Wrap Note and Mortgage" by Bridgeview, to MONY. A second paragraph provided that at any time after default, MONY could exercise the rights and remedies granted in the Wrap Note and Mortgage at the same time and instance as National Operating would have been able to exercise them. The third relevant paragraph provided that upon payment of the Underlying Note and any amounts due under the underlying Mortgage, MONY was required to reconvey the Wrap Note and Mortgage on the shopping center to National Operating.
¶ 12. The Assignment was drafted by MONY. However, the paragraph about payment of the Underlying Note and reconveyance of the Wrap Note and [850]*850Mortgage was added at the request of National Operating.
¶ 13. In late 1995, aware that National Operating was having difficulty obtaining financing to pay off the soon-to-mature Underlying Note, MONY offered to extend the loan again, for another fee and another increase in the interest rate. On December 31, 1995, however, the Underlying Note matured without a second extension. National Operating made a monthly payment of $44,899, but it failed to make full repayment on the loan. In short, it defaulted.
¶ 14. On February 14, 1996, MONY called a default on the Underlying Note and notified National Operating of its intent to exercise its rights under the Assignment, as payee and mortgagee under the Wrap Note. Its February 14 letter also was sent to Bridgeview and directed Bridgeview to make its payments on the Wrap Note to MONY beginning March 1, 1996.
¶ 15. On February 22, 1996, MONY brought a declaratory judgment action, seeking to confirm the operation of the Assignment. It asked for a declaratory judgment, confirming MONY's assumption of the Wrap Note, confirming MONY's interest as primary mortgagee and holder of the Wrap Note and Mortgage, and extinguishing the rights of National Operating as a payee and a mortgagee under the Wrap Note and Mortgage.
¶ 16. MONY attached more than 70 pages of exhibits to its complaint and incorporated them by reference. The exhibits included: (1) the Underlying Note and Security Agreement between National Operating and MONY; (2) the Wrap Note and Purchase Money Mortgage and the accompanying Security Agreement between National Operating and Bridgeview; and (3) [851]*851the Loan Modification and Extension Agreement and the accompanying Assignment between National Operating and MONY.
¶ 17. National Operating did not answer the declaratory judgment complaint. Thus, on March 28, 1996, in an order drafted by MONY, the La Crosse County Circuit Court, Michael J. Mulroy, Judge, granted MONY a default judgment. This declaratory judgment by default confirmed the Assignment, confirmed MONY's status as primary mortgagee and holder of the Wrap Note and Mortgage, and extinguished the rights of National Operating as a payee and a mortgagee under the Wrap Note and Mortgage. The declaratory judgment faithfully mirrored the language of MONY's complaint.
¶ 18. After the February 14 letter, confirmed by the March 28 declaratory judgment, MONY took over the Wrap Note and Mortgage. It stepped into National Operating's shoes and began to receive Bridgeview's monthly payments.
¶ 19. Two years later (1998), MONY and Bridgeview negotiated an agreement under which Bridgeview would pay MONY $4 million to satisfy its $5.5 million debt on the Wrap Note, thereby satisfying its debt for $1.5 million less than it owed. MONY would receive a payment from Bridgeview of $4 million, about $1.6 million more than the approximately $2.4 million that remained unpaid by National Operating on the Underlying Note. From this agreement, National Operating would get nothing.
¶20. When National Operating learned of the impending transaction, it informed MONY that it wished to tender full payment of its debt — approximately $2.4 million — and to exercise its right to reconveyance of the Wrap Note and Mortgage. [852]*852MONY refused the tender, claiming that National Operating's rights had been totally extinguished by the 1996 declaratory judgment.
¶ 21. National Operating reacted in May 1998 by filing a multi-count lawsuit against MONY and Bridgeview, commencing this cause. The complaint alleged that MONY was on the verge of unlawfully disposing of National Operating's collateral in violation of Chapter 409 of the Wisconsin Statutes (Article 9 of the U.C.C.), relating to the rights of debtors in default in secured transactions. It asked for an injunction to prevent disposal of the collateral in a commercially unreasonable manner and a declaratory judgment interpreting the 1993 Assignment as requiring a reconveyance of the Wrap Note to National Operating after MONY was paid in full. National Operating also raised numerous other claims, including breach of contract, breach of the implied covenant of good faith and fair dealing, unjust enrichment, intentional interference with a contractual relationship, and civil conspiracy.
¶ 22. MONY and Bridgeview answered, and MONY moved to dismiss National Operating's action on the grounds of res judicata and collateral estoppel (claim preclusion and issue preclusion). MONY contended that in the 1993 Assignment, National Operating had assigned to MONY all its rights in the Wrap Note and Mortgage, and that the declaratory judgment had confirmed that National Operating had no remaining rights.
¶ 23. In November 1998 National Operating amended its complaint, taking into account the answers it had received to its original complaint. Then it moved for partial summary judgment on the issue of whether it was entitled to the surplus equity in the [853]*853Wrap Note. National Operating claimed that MONY was prohibited from selling the Wrap Note and thereafter retaining surplus equity in the Note. It claimed that MONY was required by the Assignment, after repayment of the original loan, to reconvey the Wrap Note and Mortgage to National Operating. In response, MONY and Bridgeview each filed motions to dismiss National Operating's action.
¶ 24. The circuit court, Judge Gonzalez presiding, granted the motions to dismiss on the grounds of claim preclusion, and denied National Operating's motion for partial summary judgment. The court found that MONY had sought in its declaratory action to confirm its assumption of the Wrap Note and Mortgage pursuant to the Assignment, and to extinguish the rights of National Operating to the Wrap Note and Mortgage. It found that the 1996 judgment declared that National Operating had "no right of reconveyance or right to surplus equity." It concluded that in the prior declaratory action, MONY was "[i]n effect.. .asserting its right in full to the Wrap Note and Mortgage" and that National Operating's claims "would nullify the default judgment entered previously by depriving [MONY] of its property right in the Wrap Note and Mortgage." The court therefore determined that National Operating's claim was barred by claim preclusion.
¶ 25. The court of appeals affirmed, determining that National Operating's claims were precluded by the 1996 declaratory judgment against it. The court stated that MONY's declaratory action had sought to "confirm its assumption of the wrap note and mortgage under the assignment and to extinguish all of National [Operating]'s rights in those instruments." Nat'l Operating, L.P. v. Mut. Life Ins. Co. of N.Y., unpublished [854]*854slip op. at 3 (Wis. Ct. App. Dec. 23, 1999). It stated that MONY alleged in its declaratory action that:
National [Operatingfs rights under the wrap note and mortgage had been extinguished as a result of its default on the underlying note. [MONY] was asserting its rights under the wrap note and mortgage in full, claiming, in effect, that National [Operating] had no remaining rights in or under either document. And the judgment expressly declared the parties' rights in all those respects.
Id. at 6-7.
¶ 26. The court of appeals acknowledged that MONY's complaint for declaratory judgment did not specifically refer to the "repayment" or "reconveyance" provisions of the Assignment. Id. at 7 n.4. It determined, however, that the entire Assignment was incorporated by reference, and thus those provisions "must be considered to have been pleaded." Id. The court concluded that National Operating's "repayment" or "reconveyance" rights were "alleged in the complaint and declared in the judgment — and are deemed to have been litigated in that action." Id. at 7 n.5.
¶ 27. We granted National Operating's petition to review the decision of the court of appeals.
II. STANDARD OF REVIEW
¶ 28. The circuit court resolved the case by granting MONY/Bridgeview's motions to dismiss, and denying National Operating's motion for partial summary judgment. We review de novo a circuit court's grant of a motion to dismiss or denial of a motion for partial summary judgment. Alberte v. Anew Health [855]*855Care Servs., Inc., 2000 WI 7, 232 Wis. 2d 587, ¶ 6, 605 N.W.2d 515; Wausau Tile, Inc. v. County Concrete Corp., 226 Wis. 2d 235, 245, 593 N.W.2d 445 (1999). In reviewing summary judgment rulings, we apply the same methodology as the circuit court, relying upon Wis. Stat. § 802.08(2) (1999-2000).6 Thorp v. Town of Lebanon, 2000 WI 60, ¶ 17 n.5, 235 Wis. 2d 610, 612 N.W.2d 59. The circuit court and the court of appeals both decided this case on the basis of claim preclusion. Whether claim preclusion applies to a given set of facts is also a question of law, which we review de novo. Lindas v. Cady, 183 Wis. 2d 547, 552, 515 N.W.2d 458 (1994).
III. ANALYSIS
A. Article 9 Rights of Debtor in Default
¶ 29. National Operating contends that this case is controlled by the provisions of Article 9 of the Uniform Commercial Code (1972)7 (Secured Transactions). Hence, we begin our analysis with the Code.
¶ 30. The Uniform Commercial Code is a series of related uniform laws that are intended to "simplify, clarify and modernize the law governing commercial [856]*856transactions." Wis. Stat. § 401.102(2)(a). Another goal of the Code is to "make uniform the law among the various jurisdictions." Wis. Stat. § 401.102(2)(c). We therefore rely on precedent from this and other jurisdictions in interpreting and applying the provisions of the U.C.C.
¶ 31. Wisconsin has adopted each section of the U.C.C. relevant to this case. This includes all of Article 9, which is embodied in Chapter 409 of the Wisconsin Statutes. Chapter 409 does not vary in any material respect from the uniform law. Hence, Article 9 and Chapter 409 are identical for purposes of our analysis and we refer to them interchangeably.8
¶ 32. Chapter 409 governs secured transactions in Wisconsin, but it does not specifically define the term "secured transaction." Instead, it provides that Chapter 409 applies to any transaction that is intended to create a security interest. Wis. Stat. § 409.102(l)(a).
¶33. Section 409.102 broadly describes the "[p]olicy and subject matter of [the] chapter." It states:
(1) Except as otherwise provided in s. 409.104 on excluded transactions, this chapter applies:
(a) To any transaction (regardless of its form) which is intended to create a security interest in personal property or fixtures including goods, documents, instruments, general intangibles, chattel paper or accounts.
[857]*857(2) This chapter applies to security interests created by contract including pledge, assignment... intended as security.
(3) The application of this chapter to a security interest in a secured obligation is not affected by the fact that the obligation is itself secured by a transaction or interest to which this chapter does not apply.
Wis. Stat. § 409.102 (emphasis added).
¶ 34. Official Comment 1 to U.C.C. § 9-102 (Wis. Stat. § 409.102), explains:
[T]he principal test whether a transaction comes under this Article is: is the transaction intended to have effect as security?. . .When it is found that a security interest as defined in Section 1-201(37) was intended, this Article applies regardless of the form of the transaction or the name by which the parties may have christened it.
Unif. Commercial Code § 9-102, 3 U.L.A. 75 (2000), reprinted in Wis. Stat. Ann. § 409.102 (West Supp. 2000).9
¶ 35. As a general rule, Chapter 409 applies to any transaction that is intended to secure payment or performance of an obligation. Wis. Stat. § 409.102(2); see also Brown v. Baker, 688 P.2d 943, 947 (Alaska 1984). Chapter 409 specifically applies to assignments, if they are intended to secure payment or performance of an obligation. Wis. Stat. §§ 409.102(1)(a) and 401.201(37).
[858]*858¶ 36. A portion of Chapter 409 (Wis. Stat. §§ 409.501 to 409.507) applies to secured transactions in default. Section 409.501 establishes the rights and remedies of both the secured creditor and the debtor in default.10 It states in relevant part:
Default; procedure when security agreement covers both real and personal property. (1) When a debtor is in default under a security agreement, a secured party has the rights and remedies provided in ss. 409.501 to 409.507 and except as limited by sub. (3) those provided in the security agreement.
(2) After default, the debtor has the rights and remedies provided in ss. 409.501 to 409.507, those provided in the security agreement and those provided in s. 409.207.
(3) To the extent that they give rights to the debtor and impose duties on the secured party, the rules stated in the sections and subsections referred to in pars, (a) to (e) may not be waived or varied except as provided with respect to compulsory disposition of collateral (ss. 409.504(3) and 409.505(1)) and with respect to redemption of collateral (s. 409.506) but the parties may by agreement determine the standards by which the fulfillment of these rights and duties is to be measured if such standards are not manifestly unreasonable.
[859]*859(a) Sections 409.502(2) and 409.504(2) insofar as they require accounting for surplus proceeds of collateral;
(b) Sections 409.504(3) and 409.505(1) which deal with disposition of collateral;
(c) Section 409.505(2) which deals with acceptance of collateral as discharge of obligation;
(d) Section 409.506 which deals with redemption of collateral;
(e) Section 409.507(1) which deals with the secured party's liability for failure to comply with ss. 409.501 to 409.507.
Wis. Stat. § 409.501 (emphasis added).
¶ 37. Certain of the provisions enumerated in Wis. Stat. § 409.501(3)(a)-(e) (U.C.C. § 9-501(3)(a) to (e)), "may not be waived or varied to the extent that those provisions give rights to the debtor and impose duties upon the secured party." 9 William D. Hawkland et al., Uniform Commercial Code Series § 9-501:9, at 643 (1997). These provisions include the right to an accounting for surplus equity under §§ 409.502(2) and 409.504(2), and the right to disposition of collateral in a commercially reasonable manner under § 409.504(3). U.C.C. § 9-501(3)(a)-(b). The right to redeem collateral under § 409.506 may be waived, but only at a specific time in a specific manner. 9 Hawkland, supra, § 9-501:9, at 643.
¶ 38. These rights should be examined in turn. First, a debtor in default has a right to surplus equity resulting from the secured creditor's disposal of collateral. Section 409.502(2) governs the secured creditor's rights to collect collateral in the event of the debtor's default. Section 409.503 authorizes the secured creditor to take possession of the collateral upon default. Section 409.504 then describes the secured party's right to dispose of the collateral after default.
[860]*860¶ 39. Section 409.504(2) provides: "If the security interest secures an indebtedness, the secured party must account to the debtor for any surplus, and, unless otherwise agreed, the debtor is liable for any deficiency." Wis. Stat. § 409.504(2) (emphasis added).
¶ 40. Official Comment 3 to U.C.C. § 9-504 (Wis. Stat. § 409.504) explains: "In any security transaction the debtor . . . is entitled to any surplus which results from realization on the collateral; the debtor will also, unless otherwise agreed, be liable for any deficiency. Subsection (2) so provides." Unif. Commercial Code § 9-504, 3B U.L.A. 130 (2000) (emphasis added), reprinted in Wis. Stat. Ann. § 409.504 (West 2000).
¶ 41. The secured creditor may choose the manner in which it disposes of collateral, "subject to the limitation that the disposition must be commercially reasonable. Thereafter, the creditor must account for a surplus and may sue for a deficiency." IFG Leasing Co. v. Gordon, 776 P.2d 607, 612 (Utah 1989).
¶ 42. The secured creditor is not authorized to retain surplus equity. The debtor in default has the right to surplus equity, and it may not waive the right. Major's Furniture Mart, Inc. v. Castle Credit Corp., 602 F.2d 538, 542 (3d Cir. 1979); Bill Fitts Auto Sales, Inc. v. Daniels, 922 S.W.2d 718, 722 (Ark. 1996).
¶ 43. Second, a debtor in default has the right to require a secured creditor to dispose of collateral in a commercially reasonable manner. This right may not be waived or varied. Wis. Stat. §§ 409.501(3), 409.502(2), and 409.504(3); see also Tropical Jewelers, Inc. v. Nationsbank, N.A. (South), 781 So. 2d 392, 394 (Fla. Dist. Ct. App. 2000). "[E]very aspect of the disposition including the method, manner, time, place and [861]*861terms must be commercially reasonable." Wis. Stat. § 409.504(3). "[W]hen a transaction is governed by Article 9, a guarantor's 'waiver of the right to the commercially reasonable disposition of collateral as set forth in U.C.C. § 9-504 is null and void.'" Bank of China v. Chan, 937 F.2d 780, 785 (2d Cir. 1991) (quoting Marine Midland Bank v. CMR Indus., 559 N.Y.S.2d 892, 893 (N.Y. App. Div. 1990)).
¶ 44. Third, a debtor in default has the right to redeem the collateral under Wis. Stat. § 409.506. Section 409.506 provides:
At any time before the secured party has disposed of collateral or entered into a contract for its disposition under s. 409.504 or before the obligation has been discharged under s. 409.505(2) the debtor or any other secured party may unless otherwise agreed in writing after default redeem the collateral by tendering fulfillment of all obligations secured by the collateral as well as the expenses reasonably incurred by the secured party.11
Wis. Stat. § 409.506 (emphasis added).
¶ 45. A debtor's right of redemption "exists until the secured party has disposed of or contracted to dispose of the collateral." Emmons v. LeMaster, Inc., 10 P.3d 33, 36 (Kan. Ct. App. 2000).
[862]*862¶ 46. A debtor may waive or vary its right to redeem collateral, but only in writing, after default. Before default, the debtor may not waive its right to redeem the collateral, even in writing. Kellos v. Parker-Sharpe, Inc., 263 S.E.2d 138, 140 (Ga. 1980). Thus, a debtor may not waive its right to redeem its collateral as part of a security agreement. Indianapolis Morris Plan Corp. v. Karlen, 268 N.E.2d 632, 633-34 (N.Y. Ct. App. 1971). "[T]he debtor may not before default, as in the security agreement, modify or vary his or her right of redemption under section 9-506 since it is one of those rights which may not be modified or varied under subsection 9-501(3)." 9 Hawkland, supra, § 9-506:5, at 795.
¶ 47. In summary, a secured transaction debtor in default may not waive or vary its right to surplus equity upon the disposition of the collateral, or its right to contest the commercial reasonableness of the disposition of its collateral. It may waive or vary its right to redeem the collateral by tendering fulfillment of its obligation, but only in writing, after default. The purpose of these restrictions on the ability to waive or vary the debtor's rights in default is explained in Official Comment 4 to U.C.C. § 9-501, which states in part:
In the area of rights after default our legal system has traditionally looked with suspicion on agreements designed to cut down the debtor's rights and free the secured party of his duties: no mortgage clause has ever been allowed to clog the equity of redemption. The default situation offers great scope for overreaching; the suspicious attitude of the courts has been grounded in common sense.
Subsection (3) of this section [U.C.C § 9-501, Wis. Stat. § 409.501] contains a codification of this [863]*863longstanding and deeply rooted attitude: the specified rights of the debtor and duties of the secured party may not be waived or varied except as stated.
Unif. Commercial Code § 9-501, 3B U.L.A. 11 (2000) (emphasis added), reprinted in Wis. Stat. Ann. § 409.501 (West 2000).
¶ 48. The purpose of Article 9 protections for debtors is further explained in Walker v. Grant County Savings and Loan Ass'n, 803 S.W.2d 913, 916 (Ark. 1991): "One clear policy reason underlying Article 9 default provisions is the protection of post default debtors from the potential of overbearing tactics and intimidation by secured parties."
¶ 49. We now apply the principles of Chapter 409 to the facts of this case.
B. Rights of the Debtor in Default in this Case
¶ 50. Two of the transactions central to this case — the loan from MONY to National Operating in exchange for the Underlying Note and Mortgage, and the sale of Bridgeview Plaza from National Operating to Bridgeview in exchange for the Wrap Note and Mortgage — are clearly labeled as security agreements. The Underlying Note states that it is a "Mortgage Note" secured by a "Mortgage and Security Agreement." The Mortgage and Security Agreement specifically states that the loan secured by the Underlying Note is a " 'security agreement'.. .subject to Article 9 of the Uniform Commercial Code."
¶ 51. Likewise, the Wrap Note is an "all-inclusive purchase money promissory note and is secured by an all-inclusive purchase money Mortgage and Security [864]*864Agreement. . .between the. . .mortgagor, and. . .the mortgagee." The Wrap Note explicitly states that it "creates a security interest." Both the Underlying Note and the Wrap Note were therefore clearly intended as security agreements, and both are subject to Chapter 409.
¶ 52. The 1996 Assignment was also intended as a security agreement. In its first amended complaint, National Operating alleged that "[a]s additional security for the now extended Underlying Note, National Operating made a collateral assignment of the Wrap Note to MONY." In its answer, MONY admitted National Operating's allegation.
¶ 53. That the Assignment was intended as security is also established in the deposition of James J. Postweiler, the former real estate vice president of MONY, who negotiated the Assignment for MONY.12 Postweiler acknowledged that the language in the Assignment regarding MONY taking the assignment of rights and remedies under the Wrap Note in the event of default was inserted to provide MONY with additional security, stating: "the concept of receiving the assignment as additional security in the event of default. . .was represented in the final agreement." He also stated: "My understanding with regard to the assignment is very clearly that that assignment was there as additional security during the extension period or after in any event of default."
¶ 54. National Operating agreed to the Assignment, pledging the Wrap Note and Mortgage as [865]*865collateral, to give MONY additional security for the Underlying Note and the Loan Extension. Consequently, all the pertinent transactions in this case were secured transactions to which Chapter 409 of the statutes applies. We must look to Chapter 409 to ascertain the rights and remedies that the parties possessed as creditors and debtors in the event of default.
¶ 55. In 1993, during the 15th year of its agreement with National Operating, MONY called its loan. National Operating was unable to make full repayment. This is when the Loan Modification and Extension Agreement and the Assignment were negotiated.
¶ 56. If we assume that National Operating's failure to pay off the loan in 1993 was a default, National Operating could have executed a written waiver of its right to redeem its collateral by full payment of its loan obligation. Wis. Stat. § 409.506. However, the notion that the 1993 Assignment was a written waiver of the statutory right of redemption is inconsistent with the paragraph in the Assignment that reaffirmed National Operating's right to reconveyance of the Wrap Note and Mortgage upon full payment of its obligation.13 Inasmuch as the Assignment was a new security agreement, it is doubtful that it could have contained a written waiver. See 9 Hawkland, supra, § 9-506:5, at 796.
¶ 57. In any event, National Operating could not waive its statutory right to commercially reasonable disposal of the collateral or its statutory right to sur[866]*866plus equity. It could not waive these two rights before default or after default. It could not waive these rights under any circumstances.
¶ 58. Furthermore, there is . some question whether National Operating should be viewed as a debtor in default in 1993 inasmuch as it renegotiated an extension of its loan and paid heavily to do so.
¶ 59. After December 31, 1995, the situation clearly changed. National Operating became a debtor in default because of its failure to pay off the full loan and its failure to secure an additional extension.
¶ 60. After this default, MONY was entitled to exercise its rights as a secured creditor under Chapter 409 and its rights under the negotiated Assignment. However, any rights it secured in the negotiated Assignment had to be consistent with rights it was authorized to obtain through negotiation under Chapter 409.
¶ 61. After default, National Operating was entitled to its rights as a debtor in default. Chapter 409 gave this debtor two rights — the right to surplus equity and the right to commercially reasonable disposal of the collateral. Wis. Stat. §§409.502, 409.504. The debtor could not waive these two rights. Chapter 409 gave the debtor another right — the right to redemption of the collateral upon full payment of the obligation, provided the collateral was still available. Wis. Stat. § 409.506. This right could have been waived in writing after default, but there is no written waiver of this right in any document after the 1995 default.
¶ 62. To sum up, looking solely at Chapter 409, we conclude that National Operating retained all the debtor's rights enumerated in the statute.
[867]*867C. Declaratory Judgment and Claim Preclusion
¶ 63. MONY presents a dramatically different perspective of this case. It argues that its 1996 declaratory judgment, based upon an alternative interpretation of the facts, totally extinguished National Operating's rights. It asserts that the declaratory judgment thus precluded any claims founded in Article 9.14
¶ 64. MONY contends that in 1993, National Operating, after defaulting, convinced MONY to execute the Loan Modification and Extension Agreement, which extended the maturity date on the loan until the end of 1995. MONY argues in its brief: "In addition, and as a means to provide MONY with additional security for the extension, National Operating assigned to MONY 'all of its rights, title and interest in those certain rights and remedies granted in the Wrap Note and Mortgage by Bridgeview.'"
¶ 65. When National Operating defaulted at the end of 1995, MONY brought a declaratory judgment action seeking to confirm the operation of the Assignment "in light of National Operating's second default on the Underlying Note." According to MONY's brief,
MONY prayed for a declaration confirming its full and unconditional ownership of the Wrap Note and Mortgage and "extinguishing" National Operating's remaining rights in these instruments.
[868]*868. . .On March 28, 1996. . .the Court entered a declaratory judgment consistent with MONY's request.
In response to National Operating's [1998] Complaint, MONY moved to dismiss the action on [claim] preclusion grounds. MONY argued that the 1996 Declaratory Judgment, which confirmed the complete assignment of the Wrap Note and Mortgage to MONY, as well as the resulting extinguishment of National Operating's rights in those instruments, barred National Operating's current efforts.
¶ 66. This, in essence, was the view adopted by the circuit court and the court of appeals. MONY's interpretation of the 1996 declaratory judgment requires us to address claim preclusion under declaratory judgments.
1. Claim Preclusion
¶ 67. The circuit court and the court of appeals both determined that National Operating's claims were barred by claim preclusion. Under the doctrine of claim preclusion, formerly known as res judicata, a final judgment is conclusive in all subsequent actions between the same parties as to any claim or cause of action that was litigated or could have been litigated in the first action. Sopha v. Owens-Coming Fiberglas Corp., 230 Wis. 2d 212, 233, 601 N.W.2d 627 (1999).
¶ 68. In Barbian v. Lindner Bros. Trucking Co., 106 Wis. 2d 291, 296-97, 316 N.W.2d 371 (1982), this court examined whether the same claim preclusion rule applies to declaratory judgments. We concluded that it does not, stating: "[A] declaratory judgment is [869]*869only binding as to matters which were actually decided therein and is not binding to matters which 'might have been litigated' in the proceeding." Barbian, 106 Wis. 2d at 297.
¶ 69. The declaratory judgment here was a default judgment. Subsequent actions may be precluded by a prior default judgment. A.B.C.G. Enters, v. First Bank Southeast, 184 Wis. 2d 465, 481, 515 N.W.2d 904 (1994). However, in default judgments, relief "is limited to that which is demanded in the plaintiffs complaint." Klaus v. Vander Hey den, 106 Wis. 2d 353, 359, 316 N.W.2d 664 (1982). "The judgment does not extend to issues which were not raised in the pleadings." Id. at 360.
¶ 70. For claim preclusion to apply to an action, "the following factors must be present: (1) an identity between the parties or their privies in the prior and present suits; (2) an identity between the causes of action in the two suits; and (3) a final judgment on the merits in a court of competent jurisdiction." Northern States Power Co. v. Bugher, 189 Wis. 2d 541, 551, 525 N.W.2d 723 (1995).
¶ 71. The parties agree that the "identity between the parties" and the "final judgment" requirements are met in this case. MONY, National Operating, and Bridgeview were the named parties in the 1996 declaratory action, which was decided by a final declaratory judgment. The question for the court is whether an identity exists between the claims National Operating raised in its current action, and the causes of action pleaded, actually litigated, and decided in the 1996 declaratory judgment.
[870]*8702. Assignment, Complaint, and Declaratory Judgment
¶ 72. To determine what was actually pleaded and litigated in the declaratory judgment, we must examine the Assignment, MONY's declaratory complaint, and the resulting declaratory judgment.
¶ 73. We begin with the Assignment. The Assignment from National Operating to MONY states in relevant part:
NOW, THEREFORE, [National Operating] does hereby assign to [MONY] all of its right, title and interest in those certain rights and remedies granted in the Wrap Note and Mortgage by Bridgeview, to [National Operating],
At any time after default, under the Wrap Note and Mortgage, [MONY] may exercise said rights and remedies at such time and instance [National Operating] would be able to exercise those rights and remedies, upon notice to and without recourse from [National Operating],
Upon payment of the [underlying] note and any amounts due under the [underlying] mortgage, [MONY] shall convey the Wrap Note and Mortgage to [National Operating].
¶ 74. The heart of the Assignment includes three distinct paragraphs. Because the effectiveness of the first paragraph depends entirely upon the "default" referenced in the second paragraph, the Assignment cannot be viewed as an absolute assignment in which there is an immediate, absolute transfer of rights. An example of this kind of assignment, the 1978 assignment of the Underlying Note from the Trustees of MONY Mortgage Investors to MONY, is described above. See supra ¶ 7 note 2. It must instead be viewed as a collateral assignment, in which the collateral [871]*871serves as security for a loan,15 and as a conditional assignment in which the condition precedent is default on the loan..
¶ 75. The declaratory complaint was filed on February 22, 1996, eight days after MONY notified National Operating that it would exercise its rights under the Assignment. In the complaint, MONY meticulously details the relationships and transactions among the parties and attaches and incorporates by reference about 70 pages of exhibits, including the Underlying Note and Security Agreement, the Wrap Note and Purchase Money Mortgage along with the Security Agreement, and the Loan Modification and Extension Agreement along with the Assignment.
¶ 76. Paragraph 11 of the complaint reads in part: "In consideration of the Loan Modification and Extension Agreement. . .National Operating. . .assigned its rights under the Note and Mortgage between it and. . .Bridgeview Plaza Partnership. . .to the Plaintiff pursuant to an Assignment dated October 18,1993. . . .A copy of this Assignment is attached and incorporated herein by reference."
¶ 77. Paragraph 12 of the complaint states: "Pursuant to the terms of the Assignment, notice was given [872]*872to [National Operating] that [MONY] will exercise the rights and remedies of [National Operating] under the [Wrap] Note and Mortgage described in the Assignment."
¶ 78. After alleging the facts, MONY specifically sought relief in the form of:
a Declaratory Judgment of this Court confirming its assumption of the Notes between the Defendant, National Operating, L.P., and the Defendant, Bridgeview Plaza Partnership; extinguishing the rights of the Defendant, National Operating, L.P., as a mortgagee under said Mortgage; extinguishing the rights of the Defendant, National Operating, L.P., as payee under the Note; and confirming the Plaintiffs interest as primary mortgagee and holder of the Note and Mortgage declared herein.
¶ 79. When National Operating did not answer the complaint, Judge Mulroy granted MONY a default judgment on March 28, 1996: (1) "confirming the assignment and assumption of the Notes between. . .National Operating,. . .and Bridgeview Plaza Partnership, in LaSalle National Bank, as Indenture Trustee";16 (2) "extinguishing the rights of. . .National Operating,. . .as a mortgagee under said Mortgage"; (3) "extinguishing the rights of. . .National Operating. . .as payee under the Note"; and (4) "confirming LaSalle National Bank as the primary mortgagee and holder of the Note and Mortgage."
¶ 80. Taking a close look at the complaint, there is no reference to the contingency enumerated in the Assignment of the right to reconveyance of the Wrap [873]*873Note and Mortgage upon payment of the Underlying Note. There is no reference in the complaint to the Uniform Commercial Code. There is no claim that National Operating had waived a statutory right. There is only a demand to extinguish "certain" of National Operating's rights.
¶ 81. The declaratory judgment closely follows the complaint. It does not acknowledge and then confirm, in specific terms, a waiver of National Operating's right to redeem collateral upon payment of the loan, nor does it make any specific reference to extinguishing rights under Article 9 or Chapter 409.
¶ 82. The declaratory judgment grants only what MONY asked in its complaint; it could have granted nothing more. Wis. Stat. § 806.0l(l)(c);17 Klaus, 106 Wis. 2d at 359.
¶ 83. The issue then is whether this 1996 declaratory judgment precludes the present claims by National Operating, irrespective of its rights under Chapter 409, because the substance of these claims was aptly pleaded by MONY and fully determined by the circuit court.
¶ 84. Once again, the rule on claim preclusion in a declaratory judgment action is different from the rule on claim preclusion in typical litigation: A declaratory judgment is binding only as to matters which were actually decided in the action, not to matters which [874]*874might have been litigated in the proceeding but were not. Barbian, 106 Wis. 2d at 297.
¶ 85. Put bluntly, did MONY plead and did Judge Mulroy decide that National Operating, in the 1993 Assignment, bargained away its right to all surplus equity in the collateral and its right to commercially reasonable disposition of collateral, notwithstanding the protective provisions of Chapter 409? We see no evidence that MONY articulated such a far-reaching claim in its complaint and no evidence that Judge Mulroy bought into such a claim. To accept that proposition would require us to believe that Judge Mul-roy consciously disregarded the statutory law. We decline to do so.
¶ 86. Whether National Operating waived its right to redeem collateral in the 1993 Assignment is a closer question. Nevertheless, for MONY to prevail, it must argue that its declaratory complaint implicitly alleged that National Operating defaulted in 1993; that after this default, National Operating consciously waived its right to redeem collateral within the written Assignment; that Judge Mulroy understood this implication of the complaint; that he made a determination that the "default" referred to in Wis. Stat. § 409.506 was the 1993 default, not the 1995 default; and that he granted judgment to confirm MONY's theory.
¶ 87. Such an argument is unreasonable for several reasons. Contrary to MONY's assertions, the 1993 Assignment does not on its face assign all right, title and interest in the Wrap Note and Mortgage to MONY. Instead, National Operating assigns "all of its right, title and interest in those certain rights and remedies granted in the Wrap Note and Mortgage" (emphasis added). We perceive significance in this limiting lan[875]*875guage. Obviously, none of the debtor's rights in Chapter 409 is "granted in the Wrap Note and Mortgage." Moreover, the right to reconveyance in the Assignment — a right that parallels the right of redemption in Wis. Stat. § 409.506 — is simply different from any right of redemption granted in the Wrap Note and Mortgage. After all, National Operating possessed the Wrap Note and Mortgage before default. Any right to redemption "granted in the Wrap Note and Mortgage" would have been Bridgeview's right, not National Operating's right, and would have come into play if and when Bridgeview paid off its obligation to National Operating. The surrender of some right to redemption "granted in the Wrap Note and Mortgage" is not the same as the surrender of a right to reconveyance granted in the Assignment.
¶ 88. MONY contends that the second and third relevant paragraphs of the Assignment are mutually exclusive and that the third paragraph of the Assignment on reconveyance applies only if National Operating paid the Underlying Note in full, without defaulting. These interpretations are not self-evident from the text, and MONY's interpretation of the third paragraph does not make sense. Why would National Operating insist on including a paragraph in the Assignment that substantively reduced its statutory right of redemption?
¶ 89. When a debtor in default waives its statutory right to redeem collateral by paying off the obligations secured by the collateral, the waiver must be agreed to in writing by the parties. Wis. Stat. § 409.506. A clear, explicit written waiver records the agreement of the parties. Unclear, ambiguous language that is subject to after-the-fact interpretation is [876]*876inconsistent with the debtor protections contained in Article 9 of the Code.18
¶ 90. Turning to the complaint, MONY asserts that the complaint alleged and sought a judgment declaring the extinguishment of all National Operating's rights in the Wrap Note and Mortgage. It claims that even if it did not specifically allege the extinguishment of all National Operating's rights, it effectively pleaded every provision of the Underlying Note, Wrap Note, and Assignment by incorporating each of those documents by reference. It cites Wis. Stat. § 802.04(3) for the proposition that "a copy of any written instrument which is an exhibit to a pleading is a part thereof for all purposes." It therefore asserts that inasmuch as these documents were attached to the complaint and incorporated by reference, they were aptly pleaded, citing to A.B.C.G. Enters., 184 Wis. 2d at 481.
¶ 91. We disagree. MONY did not aptly plead all provisions of the Underlying Note, Wrap Note, and Assignment, as well as all the other documents, simply by attaching them to the complaint and incorporating them by reference.
¶ 92. MONY's complaint consisted of six pages. Its request for relief was contained in a single tightly-written paragraph. National Operating could have read the complaint without discerning the interpretation now being advanced by MONY and without suspecting that the 70 pages of exhibits were more than documentation.
[877]*877¶ 93. Wisconsin Stat. § 802.04(3) must not be interpreted to mean that in a declaratory judgment action, a party aptly pleads every provision of every document that it incorporates by reference, for claim preclusion purposes. In a declaratory judgment action, claim preclusion is limited to those matters that are actually litigated. Barbian, 106 Wis. 2d at 297. To be actually litigated in this context, a matter must be pled with sufficient clarity to give notice to the opposing party and the court of what claims are at stake so that they will understand the claims that will be barred in future litigation.
¶ 94. Here there was a default judgment. By failing to answer the complaint, National Operating was conceding every claim actually pleaded. But National Operating was not given fair notice in the complaint that MONY sought to extinguish all its rights, as opposed to the "certain" rights granted it as a payee or mortgagee under two specific documents. This court will not countenance a procedure that permits a’ party to unconsciously surrender what it could not consciously waive, or to lose in ambiguity what it could only waive in an explicit writing.
¶ 95. The declaratory judgment — a document drafted by MONY — granted precisely the relief sought in MONY's complaint, nothing more. The broad scope attributed to the declarator}7 judgment by MONY simply is not present in the legal document.
¶ 96. By its plain language, the declaratory judgment confirmed the Assignment and MONY's assumption of the Wrap Note, confirmed MONY’s interest as primary mortgagee and holder of the Wrap .Note and Mortgage, and extinguished the rights of National as payee and mortgagee. It did not declare [878]*878that National Operating had given up all its rights in or to the Wrap Note. It did not declare that National Operating agreed in the Assignment to give up its rights under Chapter 409. It did not by its plain language extinguish National Operating's right of reconveyance of collateral were MONY paid in full for obligations owed it on the Underlying Note. Consequently, MONY is still required to reconvey the collateral to National Operating once National Operating satisfies all its obligations, if the collateral is still available. Wis. Stat. § 409.506.
¶ 97. The declaratory judgment enforced the terms of the Assignment. It thereby eliminated any doubt that Bridgeview should make monthly interest payments on the Wrap Note to the assignee. It enabled MONY to dispose of the collateral in a commercially reasonable manner. Thus, MONY was authorized to sell the collateral to Bridgeview if it did so in a commercially reasonable manner.
¶ 98. Conversely, MONY was not authorized to sell the collateral without notice to National Operating. Wis. Stat. §,409.504(3). It was not authorized to dispose of the property in a manner that was not commercially reasonable. Wis. Stat. §§ 409.501(3), 409.502(2), and 409.504(3). And it was not authorized to kéep surplus equity for itself. Wis. Stat. § 409.504(2).
¶ 99. The Uniform Commercial Code is one of the preeminent achievements of American law. It is constantly under review so that it can address changing practices in the world of commerce.19 Our role as a [879]*879court is not to question the effect of Code provisions in a particular case. Our role is to apply the law.
D. Disposition of Motions in this Case
¶ 100. In its first amended complaint, National Operating raised 11 claims. The circuit court dismissed all these claims, finding that:
All of [National Operating's] claims in the present action, Unlawful Disposition of Collateral, Anticipatory Breach of Contract, Breach of Implied Covenant of Good Faith and Fair Dealing, Unjust Enrichment, Intentional Interference With Contractual Relationship, Civil Conspiracy, and Accounting, if successfully litigated, would nullify the default judgment previously entered by depriving [MONY] of its property right in the Wrap Note and Mortgage. Therefore [National Operatingfs claims are barred by the doctrine of claim preclusion.
¶ 101. A moving party is entitled to summary judgment when no genuine issue of material fact exists and it is entitled to judgment as a matter of law. Nierengarten v. Lutheran Soc. Servs., 219 Wis. 2d 686, 695, 580 N.W.2d 320 (1998). We have determined that [880]*880National Operating possesses certain rights in and to the Wrap Note and Mortgage that were not litigated in the declaratory judgment action nor declared in the resulting judgment. We therefore conclude that National Operating's claims are not barred by claim preclusion. They should not have been dismissed on that basis. We hereby remand this case to the circuit court with instructions to reinstate National Operating's claims.
¶ 102. In its motion for partial summary judgment, National Operating sought only a declaration "that it is entitled to the surplus equity in the security (Wrap Note) it assigned to Mutual Life Insurance Company of New York (MONY) as collateral for National Operating's obligation to MONY." The circuit court denied the motion. It is undisputed that National Operating assigned the Wrap Note to MONY as security for its obligation on the Underlying Note. We conclude that the assignment of the Wrap Note and Mortgage was a secured transaction governed by Chapter 409. Under Chapter 409, a debtor in default in a secured transaction has a non-waivable and non-variable right to surplus equity in the collateral, as provided in the statutes. There are therefore no remaining issues of material fact or questions of law relative to National Operating's motion. Accordingly, we remand to the circuit court with instructions to grant National Operating's motion for partial summary judgment, declaring that National Operating is entitled to surplus equity after disposition of the Wrap Note by MONY.
[881]*881IV. CONCLUSION
¶ 103. We hold that under the facts of this case, National Operating is a debtor in default in a secured transaction pursuant to Chapter 409 of the Wisconsin Statutes (Article 9 of the U.C.C.). It therefore possesses and retains certain non-waivable and non-variable rights, including the right to contest the reasonableness of any disposition of the collateral, and the right to receive any surplus equity after disposition of collateral by MONY. It also has a right to redeem the collateral if it satisfies certain obligations, provided the collateral is still available. These rights were not "bargained away" by National Operating, litigated in MONY's declaratory judgment action, nor declared in the declaratory judgment. Since these rights are the basis of National Operating's current claim, we determine that the circuit court improperly granted the motions to dismiss filed by MONY and Bridgeview. We further determine that National Operating is entitled as a matter of law to partial summary judgment on its claim that it has a right to surplus equity after disposition of the Wrap Note.
By the Court. — The decision of the court of appeals is reversed and the cause is remanded.