
    UNION CENTRAL LIFE INSURANCE COMPANY, Respondent, v. CO-OPERATIVE LUMBER COMPANY et al, Appellant.
    (212 N. W. 876.)
    (File No. 6392.
    Opinion filed April 1, 1927)
    1. Mechanics’ Lien — Exemptions—Where Value of Homestead Exceeded $5,000, Mechanic’s Lien Oould Attach Notwithstanding Value Was Insufficient to Pay Incumbrances After Deducting Exemptions (Rev. Code 1919, § 1644, as Amended by Laws 1921, c. 280).
    That value of property was insufficient to pay incumbrances after deducting value of homestead exemption did not prevent mechanic’s lien from attaching thereto to extend that value of homestead exceeded $5,000 under Rev. Code 1919 § 1644, as amended by Laws 1921, e. 280.
    2. Mechanics’ Liens — Homestead—Any Excess of Value of Homestead Over $5,000 Supported Mechanic’s Lien Giving Holder Right to Pay Off Exemptions and Incumbrances Applying Balance to Discharge Lien (Rev. Code 1919, § 1644, as Amended by Laws 1921, c. 280).
    Where homestead value exceeded $5,000, mechanic’s lien could attach under Rev. Code 1919, § 1644, as amended by Laws 1921, c. 280, giving lienor right to pay owner of homestead $5,000, pay off incumbrances, and apply balance of excess to lien, regardless of amount of excess value of homestead over $5,000.
    
      3. Mechanics’ Liens — Payments—Materialman Holding Two Accounts Against Debtor Could Apply Payment on Older Account, In Absence of Directions (Rev. Code 1919, § 757).
    Materialman holding two accounts could apply money received from debtor first in payment of older account, where debtor gave no directions, under Rev. 'Code, 1919, § 757.
    4. Mortgages — Mortgage Executed during Construction of Building Held Inferior to Mechanic’s Lien, though Loan Was Used To Pay Pre-Existing Incumbrances, Where Mortgagee Was Mere Volunteer Making Loan Without Requiring Discharge of Incumbrances.
    That prior mortgages were paid with money received from mortgagee on loan held not to entitle mortgagee to priority as against mechanic’s lien for materials furnished at time loan was made, where mortgagee was volunteer not required to make loan to protect his own interests, and where money was paid over to debtor without requirement that prior incumbrances be discharged.
    5. Mortgages — Equitable Liens — Mortgagee Malting Loan As Volunteer Without Directions To Pay Pre-Existing Incumbrances Held Not Entitled to Equitable Protection As Against Prior Mechanic’s Lien.
    One making loan, not required to' do so to protect his own interests and without directions as to payment of pre-existing incumbrances, held not entitled to equitable protection under mortgage as against claim of holder of mechanic’s lien for construction work done at time of making loan.
    6. Mortgages — One Voluntarily Making Loan Was Charged With Notice Of Prior Mortgages and Delivery of Building Material On Premises.
    One making loan as mere volunteer was charged with notice of prior incumbrances, and that building material was being delivered on premises on which barn was, being constructed.
    7. Subrogation — One Loaning Money on Property Without Requiring Application of Money in Payment of Existing- Liens Held Mere Volunteer.
    Mortgagee making loan, who failed to see that money was applied to existing liens and incumbrances, had position of mere volunteer not entitled to claim under prior mortgages.
    8. Subrogation — One Making Loan, Not Necessary for His Own Protection, Without Requiring Discharge of Prion Incumbrances, Could Not Invoke Subrogation.
    One making loan as volunteer, not being in position where loan was required to protect his interests, was not entitled to be subrogated to rights of prior lienholders, where money was paid to mortgagor without specification as to use to be made thereof.
    
      Note. — See, Headnote (1) and (2), American Key-Numbered Digest, Mechanics’ liens, Key-No. 14, 40 C. J. See. 25 (3) Mechanics’ liens, Key-No. 239, 40 O. J. Sec. 461; (4) and (5) Mechanics’ liens, Key-No. 151(3), 40 O. J. Sec. 372 (Anno); (6) Mortgages, Key-No. 154(1), 41 O. J. Sec. 444, Mechanics’ liens, 40 C. J. Sec. 372 (Anno); (7) Subrogation, Key-No. 26, 37 Oyc. 471 (Anno); (8) Subrogation, Key-No. 22, 37 Oyc. 471 (Anno).
    Homestead as subject to mechanics’, lien, see annotation in L. R. A. 1918D, 1005, 13 R. C. L. 608; 3 R. C. L. Supp. 66.
    On the question of priority of mechanics’ lien over mortgage, see 18 R. C. L. 955; 3 R. C. L. Supp. 880; 4 R. €'. L. Supp. 1226.
    Appeal from Circuit Court, Brown County; Hon. Robert D. Gardner, Judge.
    Action iby the Union Central Rife Insurance Company, of Cincinnati, Ohio; against the Co-operative Dumber Company of Hecla, S. D., and others. Judgment for plaintiff, and named defendant appeals.
    Case remanded, with directions.
    
      McNulty, Williamson & Smith, of Aberdeen, for 'Appellant.
    
      Hall, Purdy & Bidem, of Brookings, for Respondent.
   PO'DREY, J.

Plaintiff brings this action to foreclose a mortgage on a half section of land in Brown county. The land belonged) to defendant Treeby. During the summer of 1921, Treeby contracted with defendant lumber company for material with which to build a bam on the said land. The cost of this material was $1,656.65. The material was delivered and actual visible construction of the barn was commenced on or before the 14th day of August, 1921. When the contract for this material was made, it was understood between defendant and Treeby that a part at least of the bill for this material was to be paid in cash, but for some reason this was not done.

■Ait the time Treeby purchased the above material, he was negotiating with plaintiff for a loan to be secured by a mortgage on the said half section of land. These negotiations resulted in a loan of some $20,000. The mortgage was dated August 24, acknowledged August 29, filed for record October 14, but the money was not paid until November 9, 1921. At the time Treeby purchased the above building material, he was already owing defendant a bill of something over $800 for which defendant appears to have had no lien or other security. After Treeby received the money on the loan, he paid the lumber company $1,000 but he gave no directions as to which of the two bills the money was to be applied upon, and the lumber company credited it first upon the older of the two accounts. Later on another payment was made. This reduced the balance due on the material that 'was used in building the barn to $i,395.05, and within the time allowed by law for filing liens the lumber company filed' a mechanic’s lien for this amount. At and for some time prior to the making of the said loan, the said half section of land was subject to two mortgages — one for $3,000 and the other for $6,500. Part of plaintiff’s loan was used to satisfy these two’ mortgages. The quarter section on which the said barn was built, and which was occupied by other farm buildings, constituted the homestead of Treeby and his family. The evidence shows that this quarter section with the improvements thereon was worth not less than $7,200.

Two questions are submitted for the determination of the court: First, did the lumber company acquire a mechanic’s lien on the Treeby homestead; and, second, if such lien was acquired, was it superior in right to plaintiff’s mortgage?

Under the provisions of section 1644, R. C., as amended by chapter 280, Laws 1921, a mechanic’s lien may attach to a homestead to the extent that the value of the homestead exceeds $5,000.' In this case the uncontradictedi evidence shows that the value of the homestead did exceed $5,000. Whatever it may have been, it was sufficient to' support the lien and gave the lienor the right to pay the owner of the homestead $5,000, to pay off prior incumbrances, if any — in this the two mortgages amounting to $9,500 — and to' apply the balance of the excess, if any, to' its lien. The fact that the value of the property in this case may not have been sufficient to pay the incumbrances after deducting the value of the homestead is not material. The right to the lien existed, and it is optional with the lienor whether he will pay off the prior incumbrances and avail himself of his lien.

The next question to be determined is the extent of defendant’s lien. It is conceded! that the $1,000 that was paid to defendant on the 14th of November was a part of the money furnished by plaintiff on the loan, and it is contended: First, that defendant knew that it was the intention and desire of Treeby that this payment be applied on the debt for the material that was used in building the 'barn; and, second, that such desire was known to defendant when the money was-paid. The evidence fails to substantiate this claim. The money had been paid to Treeby by plaintiff, but without any directions as to the use that was to be made of it, and it was paid to defendant by Treeby without any directions as to any particular account on which it was to- be applied. Under these circumstances, defendant had the right to apply the $1,000 toward the extinction of any obligation, performance of which was due to defendant from Treeby at that time. Section 757, Code 1919. The result is that defendant was entitled to a lien on the homestead for $1,395.05. This lien, however, was inferior to the lien of the two mortgages above mentioned aggregating $9,500. These two mortgages were paid and extinguished with money received from defendant Treeby on the loan, and plaintiff contends that as a matter of equity it should be given precedence over the mechanic’s lien. The facts and circumstances shown do not raise any equities in favor of plaintiff. It was not in position where it was obliged to pay off a superior lien in order to protect an existing lien of its own. It had notice of the existence of the said mortgages before it made the loan, and it is charged with notice that the building material was being delivered on the premises and the barn was being constructed before it parted with its money to Treeby. If it was its intention or desire to have existing liens and incumbrances paid with the money advanced by it, it was its duty to- see that the money was applied to that purpose. 'Not having done this, it is in the position of a mere volunteer who advanced money to Treeby and left it optional with him as to the use that would be made of it by him.

Lastly, the plaintiff invokes the doctrine of subrogation. In support of this contention plaintiff quotes the law from 37 Cyc. 443, as follows:

“A person who, in order to protect his own interest or rights in property, is compelled to pay an existing obligation against the same, such as a mortgage or other lien, is entitled to be subrogated to the rights of the creditor whose debt he paid, and to the lien of the incumbrance discharged; and he thereby becomes an equitable assignee and may keep the mortgage alive and enforce the lien for his own' benefit.”

This, we believe, is a correct statement of the law, but it is not applicable to the facts in this case. As above stated, plaintiff was not in position where, in order to protect its own interests, it was compelled to pay off existing obligations. Heegaard v. Kopka (N. D.), 212 N. W. 440. It was entirely on the outside, and voluntarily paid its money to Treeby without taking the precaution to have prior encumbrances extinguished.

This case will be remanded to the circuit court, with directions to so. modify the judgment appealed from as to establish the amount of defendant’s mechanic’s lien in harmony with this opinion, and declare the same superior to the mortgage lien of plaintiff. Costs on this appeal to be taxed- by appellant.

CAiMHBRLL, P. J., and .GATES, SHERWOOD, and BURCH, JJ, concur.  