The 13 lots involved in this quiet title action are part of a residential subdivision in Yuba County. These lots were successively the subject of a set of purchase money trust deeds and a set of construction money trust deeds. Sacramento Savings and Loan Association was the lender of construction funds. The suit represents a title contest between plaintiff Jones, who had bought the purchase money notes and bid in the properties at his trustee’s sales, and Sacramento Savings, which purchased at sales held by its own trustee. Neither party bid at the other’s sales.
The trial court sustained Jones’ claim of title and denied that of Sacramento Savings. The latter appeals from the judgment. Its purported appeal from an order denying a new trial is dismissed, the order being nonappealable.
The earlier group of trust deeds secured purchase money loans of $806.45 per lot. All were recorded August 21, 1959. All contained subordination provisions, the effect of which is now in dispute. 1 Yuba County Title Company was designated as trustee.
Somewhat over a year later the owners took out construction loans aggregating $143,900 and approximating $11,000 to *525 $12,000 a lot. The owners gave Sacramento Savings instalment notes with principal and interest payable at the rate of $86 per month. These notes included a due-on-sale clause, giving the holder an option to accelerate maturity upon any sale by the borrower. 2
Before making the construction loans Sacramento Savings issued escrow instructions to Tuba County Title Company, stating: “Please secure subordination.” The title company refused to issue insurance covering the Sacramento Savings trust deeds unless it received additional subordination agreements from the trustee of the purchase money trust deeds. Sacramento Savings then withdrew the escrow from Tuba County Title Company and another title company became the escrow depositary. Sacramento Savings then made the construction loans and its deeds of trust were recorded. No subordination agreements were executed, other than those contained in the purchase money trust deeds.
Homes were built on the 13 lots. Both the purchase money loans and the construction loans became delinquent. Jones bought up the defaulted purchase money notes and commenced the sale of individual parcels. The parties have effectually stipulated that Jones’ proceedings complied with Civil Code section 2924, in that notices of default were properly recorded and notices of the trustee’s sales given. At sales held in August and September 1961, Jones bid in three of the lots. At trustee’s sales held in February and April 1962 he bid in three more lots.
In the meantime Sacramento Savings’ trustee commenced *526 sale proceedings under the construction money trust deeds. In November 1961 it caused notices of default to be recorded against 11 of the lots. In May 1962 Sacramento Savings bid in these 11 lots at a sale held by its own trustee. Six of these were the lots which had already been sold to Jones at sales held by his own trustee. The other five had not yet been foreclosed by Jones, and as to these the sales to Sacramento Savings preceded the sales to Jones under the purchase money trust deeds. The remaining two lots were the subject of sales to Jones in April 1962 and to Sacramento Savings in November 1962. Not only did the timing of the various trustee’s sales overlap; so did recordation of notices of default and notices of sale. Neither party chose to bid at any of the other’s sales. Neither chose to exercise a junior lienor’s right to reinstate the senior loan after the latter had become delinquent. (See Civ. Code, § 2924c.) Each, apparently, relied upon the assumption that its own trust deeds had superiority.
Sacramento Savings asserts priority of its construction money trust deeds on the theory that the subordination provision of the earlier trust deeds (fn. 1,
supra)
operated automatically for the benefit of the construction lender, requiring no separate subordination document. It also claims equitable seniority, urging that equity will impose a subordinating lien to carry out the parties’ intent, although their contract language may fall short, citing
Coast Bank
v.
Minderhout,
Whatever their merit in an appropriate case, these claims are not dispositive here. A lender may agree to subordinate his lien to a later encumbrance upon specified conditions ; in order to achieve priority, the later encumbrance must substantially respond to these conditions.
(Collins
v.
Some Savings & Loan Assn.,
*527
Although the term “take-out” does not seem to have received judicial definition, the transaction of that name is a common feature of residential subdivision financing. The term refers to the permanent secured loan which the ultimate home buyer floats to finance his purchase of the dwelling and which supersedes or “takes out” the interim construction loan secured by the subdivision developer. (California Land Security and Development (Cont. Ed. Bar),
supra,
pp. 552-553; see, e.g.,
Magna Development Co.
v.
Reed,
The notes taken by Sacramento Savings were payable at the rate of $86 per month, including interest, but could be called, at the holder’s option, upon the developer’s sale of the property. 3 Thus the very objective of the subdivider’s borrowing, construction of a house and sale to a home buyer, would permit acceleration of the note. The due-on-sale clause gave the construction lender a wide range of options. It might elect to continue the subdivider as its primary obligor; or, if a home buyer of satisfactory credit appeared, permit the latter to assume the “construction” loan; or choose to exercise the power of sale conferred by its deed of trust, putting the subordinate lienholder under economic pressure to bid in the property. A construction loan accompanied by such options fell far short of supplying the “permanent” or 15-year financing demanded by the purchase-money lienholder as a condition of subordination.
There is no reason why priority of a later lienholder should not be made to depend upon compliance with these conditions. 4 They represent a means by which the purchase money lienholder protects himself against the subdivider’s default *528 after the construction loan is made. A take-out commitment or, in the alternative, a long-term loan will assure the availability of consumer financing despite the property developer’s insolvency. Either device tends to enhance the property’s value, promote its marketability and avoid distress sale if the sub divider encounters financial trouble. The interim financing supplied by Sacramento Savings and Loan Association did not supply this protection. Consequently it failed to achieve superiority over the earlier lien of the purchase money trust deeds.
There is no claim that any of the trustees’ sales produced bids exceeding the secured debt. The sales to Jones in enforcement of the senior liens wiped out the junior liens of Sacramento Savings.
(Call
v.
Thunderbird Mortgage Co.,
Sacramento Savings charges Jones with unclean hands. It points out that equity’s denial of relief extends not only to outright fraud, but to any kind of unconscionable conduct on a plaintiff’s part. The evidence indicates that Jones bought up the purchase money notes (of the face amount of $806.45 each) at a discount, knowing that the value of the lots securing them had been enhanced by the construction of homes financed by Sacramento Savings. Presumably Jones was also aware that he was buying deeds of trust burdened by subordination provisions.
There is nothing unconscionable in such conduct. Neither *529 party lacked notice of any step taken by the other. Whatever of value Jones might gain is attributable: (a) to the disingenuous draftsmanship of Sacramento Savings, which sought subordination of the purchase money liens by supplying the form but not the substance of long-term financing; (b) to Jones’ willingness to gamble on continued superiority of the purchase money liens; (c) to Sacramento Savings’ expenditure of construction money in the face of recorded purchase money liens and its misplaced reliance on the subordinating effect of its own loan papers; (d) to Sacramento Savings’ unwillingness to reinstate the defaulted purchase money loans (Civ. Code, § 2924c) or to bid in at the ensuing sales. Jones did nothing to prevent these latter steps. Had Sacramento Savings chosen to take either action, it could have protected its own large investment in these lots and limited Jones’ profit to the difference between the unpaid purchase money notes and the discounted price paid for them by Jones.
Nevertheless, Sacramento Savings seeks an equitable lien premised upon the doctrine of unjust enrichment, pointing out that a decree for the plaintiff will present him with the financial benefit of expensive improvements constructed with its money. It assigns trial court error in the denial of its motion to amend pleadings and in the rejection of its request for findings permitting imposition of such a lien. It cites the following text statement: “The general doctrine, that equity will create a lien on property where this is necessary to accomplish justice, is not confined to situations involving defective mortgages, but extends to any case where the parties attempt to make property security for an obligation. [Citations.] In some cases the lien is created as a desirable remedy though the parties did not in fact intend to make the property security for an obligation; e.g. where the object is to prevent unjust enrichment. [Citations.]” (1 Witkin, Summary of Cal. Law (1960) p. 707.)
We have concluded that Sacramento Savings is entitled to an equitable lien on the properties in Jones’ hands. Nonconflicting evidence demonstrates and this court finds that both the then owner and the lender intended that the construction loan be secured by first liens; that the savings and loan association advanced construction funds of $143,900 in reliance, however erroneous, on expected first liens; that the loan funds were actually applied to the construction of improvements having a value far exceeding that of the land; *530 that Jones, buyer of liens on the land, was aware of the improvements financed by the lending institution when he bought these liens. Since he paid a discounted price for the purchase money notes, his investment is but a fraction of the value of the improved properties. He would be unjustly enriched were he permitted to hold or sell the properties without making restitution for the improvements built at the expense of the savings and loan association. 5
A general doctrine of equity permits imposition of an equitable lien where the claimant’s expenditure has benefited another’s property under circumstances entitling the claimant to restitution.
(McColgan
v.
Bank of California Assn.,
It is necessary that the lien claimant’s money be spent upon the expected security of the property against which the lien is sought.
(A-l Door
&
Materials Co.
v.
Fresno Guar. Sav. & Loan Assn.,
A quiet title suit aimed at terminating claims upon real estate is in one sense a strict foreclosure.
(Petersen
v.
Ridenour,
The circumstances do not call for an award of interest as part of the lien, either before or after judgment. The lien is not created to enforce an express or quasi contractual obligation, but will originate in the decree of equity.
(Hayward Lumber & Inv. Co.
v.
Goast etc. Assn.,
Jones opposes imposition of equitable liens, contending that an allowance for improvements made by the defendant may not be allowed except as a setoff against damages for withholding possession of the property (citing Code Civ.
*532
Proc., § 741 ;
7
Huse
v.
Den,
85 Cal.390, 401 [
Section 741 deals with “innocent improvers” who mistakenly spend money on the land of others.
(Taliaferro
v.
Colasso, supra,
During trial the court rejected Sacramento Savings’ motion to amend the pleadings “to conform to proof” and raising new theories of unjust enrichment and equitable lien. It is appropriate to comment on that order, since our decision is inconsistent with it. In making his motion counsel for Sacramento Savings overlooked the matter of amending the pretrial conference order. Amendment of that order is at least as vital as amendment of the pleadings. (See rule 216, California Rules of Court.) The essence of the matter is to avoid the concurrence of surprise and prejudice. The procedural crystallization of issues by a pretrial conference order may collide with equity’s traditional desire to afford complete relief. In this case the evidentiary inquiry was the same, whether the parties sought the complete obliteration of each other’s title or the softer remedy proposed here. The very evidence which the parties marshaled to support their clashing claims of priority serves now to demonstrate the essential elements of equitable lien entitlement. There is no real conflict in the
*533
evidence, which demonstrates Sacramento Savings’ advance of money in misplaced reliance on the security of the property and Jones’ unjust enrichment were relief to be denied. No evidence outside the present record is needed to support findings appropriate to equitable lien imposition. As this court noted in
B. C. Richter Contracting Co.
v.
Continental Cas. Co.,
The judgment is reversed and the cause remanded with directions to enter judgment and to take such other proceedings not inconsistent with this opinion as may be necessary or appropriate.
Pierce, P. J., and Regan, J., concurred.
A petition for a rehearing was denied March 10, 1967, and respondent’s petition for a hearing by the Supreme Court was denied April 12,1967. Traynor, C. J., and Burke, J., were of the opinion that the petition should be granted.
Notes
The printed trust deeds contained the following subordination agreement:
“By the acceptance of this deed of trust: The beneficiary hereby authorizes and instructs the trustee, on demand of the Trustor, or their [sic] successor in interest, without notice, demand or further instruction, to subordinate the priority of this trust deed to a construction or improvement loan or a permanent loan on said property so long as the loan is extended by a conventional financial institution and the amount of said *525 loan is at least three times the amount of the note which this trust deed is given to secure. ’ ’
A typewritten addendum declared:
' ‘ Notwithstanding the language contained in said Subordination Agreement, it is understood that any such deed of trust must be extended by a licensed bank, savings and loan association, insurance company, or the Federal National Mortgage Association and provided said loan has a maturity of not less than fifteen years.
“A construction loan as referred to in said Subordination Agreement shall be considered prior to this deed of trust only should there be a permanent take-out committed by a licensed bank, savings and loan association, insurance company or the Federal National Mortgage Association. ’ ’
The acceleration clause declared:
“If the trustor shall sell, convey or alienate the property described in the deed of trust securing this note, or any part thereof, or any interest therein, or shall be divested of his title, or any interest therein, in any manner or way, whether voluntary or involuntary, any indebtedness or obligation secured thereby, irrespective of the maturity dates expressed in any note evidencing the same, at the option of the beneficiary hereof, and without demand or notice, shall immediately become due and payable.”
Such an acceleration option is not an invalid restraint upon alienation. (Coast Bank v. Minderhout, supra, 61 Cal.2d at pp. 315-316; Hetland, Real Property and Real Property Security: The Well-Being of the Law, 53 Cal.L.Rev. 151, 165-171.)
We do not inquire whether the subordination provisions of the purchase money trust deeds contained all the specifications necessary to permit specific performance. (See
Handy
v.
Gordon,
It is appropriate that we exercise our power to make these findings, additional to those of the trial court, where the record contains noneonflieting evidence justifying the judgment’s reversal with directions to provide relief to the appellant. (Cal. Const. (1966) art. VI, §11; Code Civ. Proc., § 956a;
Tupman
v.
Haberkern,
Section 3287 provides: “Every person who is entitled to recover damages certain, or capable of being made certain by calculation, and the right to recover which is vested in him upon a particular day, is entitled also to recover interest thereon from that day. . . .”
Section 741 provides:
"When damages are claimed for withholding the property recovered, upon which permanent improvements have been made by a defendant, or those under whom he claims, holding under color of title adversely to the claim of plaintiff, in good faith, the value of such improvements must be allowed as a set-off against such damages.”
