This appeal arises from the sale of Foreign Auto Works, Inc. (FAW) an auto sales and service business. Richard W. Ring-wood (Ringwood), Howard R. Francis (Francis), and Rebecca Jane and Massimo “Max” Poggio (Poggio) were the owners of all the issued FAW stock. Ringwood agreed to sell his stock to Poggio and Francis. Poggio subsequently bought Francis’s stock and sold FAW to Hugh Gardner (Gardner) and Anthony R. Hernandez (Hernandez). Ringwood brought an action against Francis and Poggio for breach of contract and against Hernandez and Gardner, claiming to be a third party beneficiary of their contract with Poggio. Poggio filed a separate action for breach of contract against Gardner and Hernandez. The two actions are consolidated and tried together. The court found Francis and Poggio liable for breach of their agreement with Ring-wood but dismissed Ringwood’s claim against Hernandez and Gardner. The court also rendered judgment for Poggio against Gardner and Hernandez. Hernandez and Gardner’s counterclaim against Poggio and FAW was dismissed with prejudice. All parties appealed.
FACTS
Ringwood, Francis, and Poggio were owners of all the FAW issued stock, 50,000 shares. FAW was engaged in operating Mazda and Fiat franchises and selling parts for and repairing Mazdas and Fiats.
In October 1978, the owners negotiated a sale of Ringwood’s 15,000 shares to Francis and Poggio. This agreement was formalized in a promissory note obligating FAW, Poggio, and Francis to pay Ring-wood $100,000 at a rate of at least $20,000 per year with interest to accrue at 10.5% annually. On November 8, 1978, FAW, Ringwood, Francis, and Poggio executed a new agreement that included most of the same terms as in the promissory note, but also contained a merger provision. This agreement prohibited Francis and Poggio *1353 from selling the stock or assets of FAW without Ringwood’s prior written approval. By October 1979, Francis and Poggio were delinquent in their payments to Ringwood. Poggio then purchased all of Francis’s shares and became the sole owner.
On November 27, 1979, Poggio contracted to sell the FAW stock to Gardner and Hernandez. The same parties executed a new agreement on December 29, 1979, which excluded the sale of FAW’s real property. Both agreements included provisions for full payment to Ringwood and specified 10.5% per annum interest on amounts to be paid to Poggio.
On February 8, 1980, a new agreement was again executed changing the transaction from a sale of FAW stock to a sale of FAW’s assets. No interest rate on the purchase price was specified. Dinero Services, Inc. (Dinero), a corporation formed and owned by Hernandez and Gardner, was designated as the sole buyer. This agreement did not contain any provision for the buyer to assume Poggio’s obligation to Ringwood.
In April 1980, Poggio and Dinero Services, Inc. executed their final agreement. This agreement was executed because a condition precedent in the February contract had not occurred and a dispute had arisen over the assets’ value. It contained an indemnity agreement that required Pog-gio to indemnify the “seller” [sic] for any amounts Dinero might be required to pay Ringwood, including attorney fees. Again, no interest rate was set forth.
Ringwood had filed a prior lawsuit on January 29, 1980, claiming Poggio and Francis had breached the October 1978 promissory note. Because Ringwood did not base his claim on the November 8 agreement, which the court found controlling, the court dismissed Ringwood’s claim with prejudice. This decision was affirmed in
Ringwood v. Foreign Auto Works, Inc.,
Ringwood filed the complaint leading to this appeal on February 4, 1985, basing his claim against Poggio and Francis on the November 8 agreement. Ringwood included Gardner and Hernandez as defendants, claiming he was a third party beneficiary of their agreement with Poggio and that he was damaged by their breach of that agreement. Ringwood claimed Poggio and Francis failed to make payments required by the November agreement; that they breached the agreement by selling FAW’s assets; and that they acted with malicious intent to deprive Ringwood of his interests.
Poggio then filed a complaint against Gardner and Hernandez for breach of their November 27, 1979 agreement. After the court found the April 1980 agreement was controlling, Poggio amended his complaint, basing his claims on the April agreement.
The court found that res judicata did not bar Ringwood and that Poggio and Francis were liable to Ringwood for breach, but that there was no malicious intent. The court also awarded Poggio judgment against Hernandez and Gardner personally, rather than against Dinero, with interest to accrue at the legal rate, finding that the controlling contract did not specify an interest rate. The court allocated expense and income damages from April 14, 1980, the date of the closing, instead of February, when Hernandez and Gardner took possession of FAW.
With respect to Ringwood’s claims against Gardner and Hernandez, the court found Ringwood was not a third party beneficiary but only an incidental beneficiary under the controlling agreement, and dismissed the claim with prejudice. The trial court also found there was insufficient evidence to find that Poggio or FAW was insolvent when the contract with Hernandez and Gardner was entered into.
Ringwood appeals the court’s finding that he is not a third party beneficiary. He argues further that the April 14 agreement could not release Gardner and Hernandez from their obligation to him.
Poggio appeals the court’s ruling that Ringwood’s claim was not barred by res *1354 judicata and that interest would accrue on his judgment against Gardner and Hernandez at the legal rate. Also, with respect to the court’s finding on' allocation of income and expense damages, Poggio argues he should be liable for those damages only to February 8, 1980, when Gardner and Her-nadez took control of FAW, not April 14, 1980, the closing date specified in the last agreement.
Gardner and Hernandez claim the court erred in finding that Poggio’s amended complaint relates back to his original complaint, thus allowing Poggio to bring a claim six years after the initial breach on August 8, 1980, after expiration of the applicable statute of limitations.
The court denied Gardner and Hernandez attorney fees because there was no showing of the necessity or reasonableness of the fees requested. Gardner and Hernandez claim on appeal that a showing of reasonableness is unnecessary under an indemnity agreement.
RINGWOOD’S CLAIMS
Ringwood raises two arguments on appeal. First, he claims the court erred in finding he was not a third party beneficiary, but only an incidental beneficiary of the contract between Poggio and Gardner and Hernandez. Second, in related arguments, Ringwood urges that Poggio’s release of Gardner and Hernandez from their obligation to pay him was ineffective because (1) he had vested rights by virtue of Gardner and Hernandez’s exercise of control over FAW, (2) Poggio was insolvent at the time of the release, and (3) there was not fair consideration for the April agreement.
Third Party Beneficiary
The court found that Ringwood was an intended third party beneficiary under the first two contracts between Poggio and Gardner and Hernandez, but that Ring-wood did not rely upon, assent to, nor file an action based on either of those contracts prior to the time they were superceded by the February and April 1980 agreements. The court further found that Ringwood was intended to be an incidental beneficiary only of the February 8, 1980 and April 14, 1980 agreements.
“Generally, the rights of a third-party beneficiary are determined by the intentions of the parties to the subject contract.”
Tracy Collins Bank & Trust v. Dickamore,
In this case, the contracts of November and December expressly obligated Gardner and Hernandez to assume Pog-gio’s obligation to Ringwood. However, these agreements were superceded by the February agreement and ultimately by the April agreement, both of which lacked any requirement that Gardner and Hernandez assume the obligation to Ringwood, but explicitly obligated Poggio to satisfy the obligation. Because Gardner and Hernandez did not expressly assume the obligation as they had in the earlier agreements, and because Poggio expressly agreed to satisfy his obligation to Ringwood, it is clear that the parties no longer intended Ringwood as a third party beneficiary. Gardner and Hernandez have cited the Restatement (Second) of Contracts for the proposition that parties may modify duties to a third party beneficiary under some circumstances, as follows:
(1) Discharge or modification of a duty to an intended beneficiary by conduct of *1355 the promisee or by a subsequent agreement between promisor and promisee is ineffective if a term of the promise creating the duty so provides.
(2) In the absence of such a term, the promisor and promisee retain power to discharge or modify the duty by subsequent agreement.
(3) Such a power terminates when the beneficiary, before he receives notification of the discharge or modification, materially changes his position in justifiable reliance on the promise or brings suit on it or manifests assent to it at the request of the promisor or promisee.
Restatement (Second) of Contracts § 311 (1981) (emphasis added). Although no Utah cases have expressly adopted this language, we find it applicable to the facts of this case. As found by the trial court, Ringwood did not rely upon nor change his position because of the rights as a third party beneficiary afforded him in the first two contracts, nor did he file an action based on those rights. Therefore, the parties were free to terminate Ringwood’s rights in the later, superceding contracts. The April agreement clearly does not give Ringwood third party beneficiary status. As a result, the trial court did not err in concluding Ringwood was not a third party beneficiary to the April agreement.
Fraudulent Release
Ringwood also argues that the rescission of his rights under the earlier agreements was fraudulent and, therefore, invalid, because Poggio did not receive fair consideration for the release and because Poggio was insolvent. To support his contention, Ringwood primarily relies on the Second Restatement of Contracts, which states, “a promise for the benefit of a creditor of the promisee is an asset of the promisee. A release of the promisor may be a fraud on the beneficiary or on other creditors of the promisee if the promisee is insolvent and the release is made without fair consideration_” Restatement (Second) of Contracts § 311 comment i (1981).
The court’s findings state that there was insufficient evidence to find that either Poggio or FAW was insolvent. The court also found that there was fair consideration for the April 1980 agreement. We review the trial court’s findings in accordance with Utah R.Civ.P. 52(a), and will not reverse unless the findings are clearly erroneous.
Evidence was presented as to Poggio’s debts, including tax debts and the amounts owed to Ringwood. However, no evidence was admitted concerning the value of FAW, retained by Poggio under the agreements, nor of the Fiat franchise, which he retained until 1982. Poggio also testified that he owned a painting, valued in exoess of $100,000. No competent evidence was presented to invalidate that valuation. We find sufficient evidence to support the court’s finding that Poggio’s insolvency was not established. Similarly, the court’s finding of fair consideration for the April 1980 agreement is supported by Poggio’s testimony regarding amounts he was to receive under the agreement and as reflected in the agreement itself.
Finally, Ringwood cites
Bracklein v. Realty Ins. Co.,
POGGIO’S CLAIMS
On appeal, Poggio claims that the trial court erred (1) by concluding that Ring- *1356 wood’s claims against him under the November 1978 agreement were not barred by res judicata; (2) in ruling that the legal rate of interest applied to the amount owed him by Gardner and Hernandez; and (3) allocating costs and expenses from the date of closing rather than from when Gardner and Hernandez took over FAW.
Res Judicata
Poggio claims the court incorrectly concluded that the doctrine of res judicata did not operate to preclude Ringwood’s second complaint against him. Prior to analyzing the applicability of res judicata, however, we consider an evidentiary question raised by «Ringwood. Ringwood asserts that there was no evidentiary basis for a determination that res judicata barred his action, because no evidence was offered or admitted as to the prior proceeding. We have examined the record, and determined that there are no exhibits in the trial court proceedings consisting of records of the prior litigation, nor were any requests for judicial notice of those proceedings made on the record.
Ringwood cites the case of
Parrish v. Layton City Corp.,
Application of
Parrish
was addressed by this court in
Trimble Real Estate v. Monte Vista Ranch,
once Monte Vista submitted to the district court a copy of the Supreme Court opinion, which on its face showed that the key issue had been litigated and decided, the burden shifted to Trimble, if it believed more than the opinion was needed to make a fully informed decision, to produce the record of the prior proceeding, urge the court to take judicial notice of it, or otherwise show that the opinion should not be taken at face value.
Id. Trimble, however, had not taken any of those actions but had merely argued the meaning of the opinion in the prior action. Id. As a result, this court held that Trim-ble consented to the trial court’s use of the opinion alone as a basis for its ruling. In addition, the trial court was able to infer from the opinion what had been adjudicated in the prior action and conclude that the present action was barred by collateral estoppel. Id.
In this case, from our reading of the record, it is not clear whether or not the trial court actually examined the trial court *1357 proceedings in the former action. 1 It is clear, however, that the trial court examined the supreme court opinion. Not only was it referred to in some detail in memo-randa and motions of counsel, but was also detailed in the court’s rulings, which demonstrate the court’s familiarity with the opinion. Throughout the course of the trial court proceedings, counsel and the court referred to and argued the meaning of the supreme court opinion in the context of the res judicata claim. At no point did Ring-wood object to reliance on the opinion or move for admission of the former action’s trial court proceedings. Therefore, as in Trimble, there was no error in utilizing the opinion only to determine the applicability of res judicata.
The next question is whether there needed to be explicit admission of the opinion into evidence or taking of judicial notice. 2 Judicial notice serves as a substitute for the taking of evidence. 29 Am.Jur.2d Evidence § 14 (1967). Therefore, since the opinion was not admitted into evidence, it is sufficient if judicial notice was taken. Pursuant to Utah R.Evid. 201(c), the court has discretion to take judicial notice without request by counsel. In this case, the trial court reserved ruling on the res judicata issue until after the supreme court opinion was issued. Thereafter, it referred to the opinion in detail when rendering its decision and the findings of fact and conclusions of law entered include particulars from the opinion. It is clear that the trial court had carefully read the opinion and ruled on the res judicata issue on the basis of its interpretation of the opinion, with no objection by the parties. We, therefore, conclude that the court took judicial notice of the opinion and utilized the opinion as the evidentiary basis for its decision on the issue of res judicata. 3
We now turn to the question of whether the trial court correctly concluded that Ringwood’s claim under the November 8 agreement against Poggio was not barred by res judicata. Claim preclusion is a branch of the doctrine of res judicata which has three requirements for its application:
First, both cases must involve the same parties or their privies. Second, the claim that is alleged to be barred must have been presented in the first suit or must be one that could and should have been raised in the first action. Third, the first suit must have resulted in a final judgment on the merits.
Madsen v. Borthick,
The findings of the trial court in this case indicate that, in the prior action, *1358 the trial court ruled that the October promissory note merged into the November 8 agreement and that ruling was affirmed by the Utah Supreme Court. The trial court herein concluded that the prior decision was “not a decision on the merits of Ring-wood’s claims for the sale of his stock and such decision is not res judicata so as to preclude Ringwood from pursuing claims under the Agreement of November 8, 1979.” We do not defer to the trial court’s conclusions of law, and in this case, find that the court erred in concluding that res judicata did not bar Ringwood’s claim against Poggio. Both the October promissory note and the November agreement concerned Poggio’s purchase of Ring-wood’s stock. 4 The court in the prior action determined that the October note was nullified by merger into the November agreement so that Ringwood could not assert a claim under the October note. Since Ringwood failed to assert a claim under the November agreement either initially or by amendment to his complaint, the case was properly dismissed. Obviously, a claim by Ringwood under the November agreement could have been decided in the prior action, as the agreement was extant and was in default. The only reason it was not decided was because Ringwood failed to raise the claim. The trial court apparently held that res judicata did not apply because Ringwood’s claim for payment for his stock under the November agreement was not litigated. However, the reason the claim was not litigated was solely because of Ringwood’s failure to assert the claim. The other requirements of res judicata are also met, as the parties are the same and the first action resulted in a final judgment on the merits. 5 Therefore, we find that res judicata bars Ringwood’s claims against Poggio and Francis, and reverse the judgment granted Ringwood.
Legal Rate of Interest
Poggio appeals the court’s application of the then legal rate of interest, 6%, to the balance of the purchase price owed by Gardner and Hernandez. Poggio admits that the April agreement is silent on the interest rate, but contends, however, the interest rate should be inferred to be 10.5% as was specified in the previous agreements that were superceded.
Poggio, presented no evidence at trial of an intent to incorporate a 10.5% interest rate into the April agreement. The court found that the parties intended the April agreement to supercede and replace all pri- or agreements. We defer to the trial court’s findings as to the parties’ intentions.
Seashores Inc. v. Hancey,
Allocation of Income and Expense Liability
Lastly, Poggio appeals the trial court’s allocation of income and expense damages as of the date of closing rather than the earlier date when Gardner and Hernandez took possession of FAW. This
*1359
issue was not raised in the trial court and, hence, cannot be considered for the first time on appeal.
Burgers v. Maiben,
GARDNER AND HERNANDEZ’S CLAIMS
Gardner and Hernandez contend the trial court erred (1) by finding them personally liable under the April agreement; (2) in ruling that Poggio’s amended complaint related back to his original complaint; (3) in its calculation of the amount owed by them to Poggio; and (4) in denying them attorney fees.
Personal Liability
Gardner and Hernandez appeal the trial court’s conclusion that they are personally liable under the April agreement. They argue that the court ignored the corporate form without finding Dinero was their alter ego and, consequently, unjustifiably pierced the corporate veil.
The corporate form protects shareholders from personal liability and will be pierced by the courts with great reluctance and caution.
Colman v. Colman,
two circumstances must be shown: (1) such a unity of interest and ownership that the separate personalities of the corporation and the individual no longer exist, but the corporation is, instead, the alter-ego of one or a few individuals; and (2) if observed, the corporate form would sanction a fraud, promote injustice, or result in an inequity.
Id. See also Salt Lake City Corp. v. James Constructors,
Relation Back
Gardner and Hernandez appeal the court’s conclusion that Poggio’s amendment to the complaint, filed on October 16, 1986, relates back to his original complaint, filed on May 3, 1982, and was, thus, not barred by the statute of limitations. Pog-gio’s last amended complaint was for the purpose of basing his claim against Gardner and Hernandez on the April agreement. Gardner and Hernandez argue that the earlier pleadings did not place them on notice that Poggio would base his action for breach of contract on the April agreement.
Under Utah R.Civ.P. 15(a), leave to amend pleadings “shall be freely given when justice so requires.” Utah R.Civ.P. 15(c) states, “[wjhenever the claim or defense asserted in the amended pleading arose out of the conduct, transaction, or occurrence, set forth or attempted to be set forth in the original pleading, the amendment relates back to the date of the original pleading.” Relation back is allowed under the rules even if a statute of limitations has run during the intervening time.
Meyers v. Interwest Corp.,
In this case, Poggio’s claim in his amended complaint is based on essentially the same transaction as was the original complaint: the purchase of FAW and/or its assets by Gardner and Hernandez and their alleged failure to perform under the operative contract between the parties. In addition, Gardner and Hernandez asserted repeatedly in the trial court proceedings, that the agreements under which Poggio had previously sought to recover had been su-perceded and filed a memorandum in support of a motion for partial summary judgment against Poggio, arguing the April agreement was controlling. This memorandum was filed three months before Pog-gio filed his amendment. Because the amendment was based on a similar claim arising out of the same general transaction, and because Gardner and Hernandez were aware, within the period of the statute, that the April agreement was su-perceding, Gardner and Hernandez had adequate notice of the claim and were not prejudiced by the amendment. The subject matter of the April agreement arose from the same basic dealings as the prior agreements between the same parties and the amendment alleging breach of the April agreement related back to the original filing and was not barred by the statute of limitations. Therefore, the court did not err in concluding that the amendment related back.
Amount of Liability to Poggio
Gardner and Hernandez claim the court erred in determining the amount owed Poggio. Specifically, they claim the court erred in calculating the amount they actually paid under the April agreement. Gardner testified that he actually overpaid approximately $12,000. To the contrary, Poggio testified that there was still an outstanding balance. Based on this testimony and other evidence, the court granted judgment to Poggio for $20,330.27, as the balance owed on the purchase price.
“Findings of fact, whether based on oral or documentary evidence, shall not be set aside unless clearly erroneous.... ” Utah R.Civ.P. 52(a). Particularly, the court’s award of damages will be affirmed on appeal, “if there is a reasonable basis in evidence” to support it.
Holman v. Sorenson,
Attorney Fees
Finally, Gardner and Hernandez appeal the court’s denial of attorney fees. The April agreement provided that Poggio would indemnify Dinero “from any and all claims and loss ... including attorneys’ fees” arising from claims made by Ring-wood. Gardner’s testimony that $6500 in attorney fees had been paid to defend against Ringwood’s claims was the sole evidence offered to support the claim for attorney fees. The trial court denied the request for fees on the basis that there was no evidence presented to show that the fees were reasonable or necessary, or the nature of the work done. Gardner and Hernandez argue such evidence is unnecessary because the request is made pursuant to an indemnity agreement and not an attorney fees clause. To support this argument, they cite
Heritage v. Pioneer Brokerage & Sales, Inc.,
Affirmed in part, and reversed as to the judgment entered in favor of Ringwood against Poggio.
Notes
. There are, however, indications that the court may have examined the proceedings. For example, the court said it wanted to look at the file of the former action when the supreme court was through with it, and at one point, counsel for Poggio stated he had the summons and complaint from the former action.
. Trimble does not address this question, although it appears that the supreme court opinion was neither admitted as evidence nor afforded official judicial notice on the record.
.We note, however, as does Trimble, that it would be preferable for counsel to have provided a copy of the trial court proceedings and the supreme court opinion, and either had them admitted as exhibits or requested judicial notice.
. The supreme court opinion states: "In 1978, Mr. Ringwood and FAW agreed with the defendants, Mr. and Mrs. Poggio and Mr. Francis, that the defendants would purchase Ringwood's shares for $100,000, and the defendants signed a promissory note in October, 1978 for that amount. Subsequently, on November 8, 1978 the parties entered into a written agreement for the sale and purchase of the stock.”
Ringwood v. Foreign Auto Works, Inc.,
. The fact that the prior action was dismissed with prejudice does not nullify res judicata application, as such constitutes litigation on the merits. Utah R.Civ.P. 52(a);
Steiner v. State,
