This is an action for the foreclosure of a mortgage which has proceeded to judgment and a sale, and the present controversy is between the defendants Whitney and Thayer on the one side, and the defendants Cook and Sweet on the other, as to the distribution of surplus proceeds. The most material facts giving rise to the controversy are these: On June 30, 1860, Henry Roop, the testator, being then the sole owner of the mortgaged premises, conveyed them by quit-claim deed to one Russell, and on the second day of July thereafter, Russell conveyed them by quit-claim deed to Elizabeth Roop, the wife of Henry. The consideration of these conveyances does not appear. On the sixth day of August thereafter, a written application signed “Elizabeth Roop by H. Roop,” was -made to the Buffalo Savings Bank for a loan of $6,000, to be secured by a bond and a mortgage upon these premises, and the bank consented to loan upon such application $4,500. On the twenty-third day of August, Henry and Elizabeth executed to the bank a bond for that sum, and, as collateral thereto, a mortgage upon these premises. There is no evidence showing what use was made of this money, or that any of it inured in any way to the benefit of Mrs. Roop. Attached to the mortgage was a certificate signed by the bank’s attorneys, as follows: “Mr. Henry Roop has furnished security to the Buffalo Savings Bank, for a loan of $4,500, by bond and mortgage, dated August 23, 1860, on the premises specified in his application ; ” and also a receipt signed by Mr. Roop that he had received' the sum mentioned in the certificate upon the loan mentioned. The certificate and receipt were both dated August twenty-eight—probably the day on which the money was paid to Mr. Roop—and they tend strongly to show that the loan was to him. On the 5th day of September, 1867, Mrs. Roop conveyed an undivided half of the premises to one Sherman, who, on the next day, conveyed the same to Mr. Roop. On the 19th day of November, 1872, Mr. Roop borrowed of the plaintiff $8,000, and executed to it his individual bond for the same, and, as collateral to the bond, *595he and his wife executed. the mortgage foreclosed in this action upon the whole of these premises. Of this sum sufficient was taken to discharge the prior mortgage above mentioned, and the balance was paid to Mr. Eoop ; and what he did with that does not appear. Mr. Eoop paid the interest upon the prior mortgage until it was discharged, and upon the last mortgage to the time of his death. It appears that Mrs. Eoop was reluctant to execute the last mortgage, and Mr. Eoop procured her brother, one Sherwood, to negotiate between them in reference to giving the mortgage. According to his evidence, Mr. Eoop claimed to him that he had furnished more money for his wife for her purposes than he could well carry, and he wished her to join with him in a mortgage to raise money and to pay back the amount he had advanced for her. Sherwood called upon Mrs. Eoop, and stated to her what Mr. Eoop had said, and she said “ all right,” and that she would talk the matter over with Mr. Eoop. She afterward told Sherwood that she had carried out the arrangement for this mortgage, and that her husband had had the money. Aside from what may be claimed from this evidence of Sherwood, there was no evidence that Mrs. Eoop owed her husband anything, or that he had ever advanced anything for her, or that she was carrying on any business or using any money on her own account; and considering the fact that the bond for this loan was executed by Mr. Eoop alone, and considering also the relations existing between them, and all the other circumstances, as well as the uncertain meaning of the admissions of Mrs. Eoop to Sherwood, it would not be a proper inference from this evidence that this loan was in any way lor the benefit of Mrs. Eoop. She never afterward, prior to this controversy, recognized the loan as in any way for her benefit, but always claimed that the loan was to her husband, to be paid, as between him and her, out of his half of the real estate. If it can be said that this evidence of Sherwood raised any doubt or conflict as to the purpose of this mortgage and the use of the money obtained thereby, we must *596assume, for the purpose of upholding the judgment, that the referee settled such doubt and conflict in favor of the respondents.
Mr. Roop died in. March, 1874, leaving a will, in which Mrs. Roop and the appellant Whitney were appointed executors, with power to sell real estate. In July, 1875, Mrs. Roop borrowed of one Meyer $4,000, to secure which she executed her bond and a mortgage, as collateral thereto, upon her undivided half óf these premises. In November, 1875, and in January and February, 1876, certain judgments were recovered and docketed against Mrs. Roop. Executions were issued upon such judgménts to the sheriff of Erie county, and in July, 1876, he sold Mrs. Roop’s undivided half of the premises to the respondents Cook and Sweet, and executed to them a certificate of such sale, which stated that they would be entitled to a deed October 20, 1877. In July, 1876, subsequent to the sheriff’s sale, this suit was commenced to foreclose plaintiff’s mortgage. In the spring of 1877, Meyer commenced the foreclosure of his mortgage, making Cook and Sweet parties, obtained judgment of foreclosure, and the premises were advertised for sale on the thirtieth day of May. Appellants Cook and Sweet attended on that day to protect their interests under the sheriff’s certificate. The sale was adjourned to June seventh; and before that day,' Cook and Sweet had given to Meyer’s attorney their check for the amount of the mortgage, interest and costs, for the purpose of obtaining an assignment thereof, so that they could control the sale. On the seventh day of June they appeared at the place of sale, and not having received the assignment, they bid off the mortgaged premises and obtained the sheriff’s deed of the same. They claim, this surplus money by virtue of this deed and their purchase under the judgments. Mrs. Emily Thayer bases her claim in reference to the surplus upon facts now to be stated. On the 4th day of June, 1877, Mrs. Roop and Whitney, as executors of the will of Henry Roop, executed a deed of the undivided half of these premises to the appellant Thayer. *597In that deed it was provided that the premises conveyed were subject to the whole of the plaintiff’s mortgage, which the grantee assumed to pay. Whitney and Mrs. Thayer claim, and gave evidence tending to show, that this provision in the deed was inserted by mistake, as it was the agreement and intention of the parties that the grantee should assume, and pay only one-half of plaintiff’s mortgage as a part of the * consideration, and that, therefore, another deed was executed and delivered to Mrs. Thayer on the 17th day of July, 1877, to correct the mistake and take the place of the former deed, in which the grantee assumed to pay only one-half of the mortgage. Standing upon these deeds, Mrs. Thayer claims that Mrs. Boop did not execute plaintiff’s mortgage as surety for her husband; that that mortgage was as to all parties a lien upon all the promises, and that the surplus should be divided equally between her and Cook and Sweet.
It is entirely clear that this mortgage, the foreclosure of which has produced this surplus, was given to secure the debt of Mr. Boop, and that Mrs. Boop was, as to her undivided half of the land, simply a surety for him. As between them, his half was in equity primarily liable to pay the debt: (Loomer v. Wheelwright, 3 Sand. Ch., 135; Neimcewicz v. Gahn, 3 Pai., 614; Vartie v. Underwood, 18 Barb., 561; Smith v. Townsend, 25 N. Y., 479; The Bank of Albion v. Burns, 46 id., 170.) It was her right to have his share sold first, if enough could" in that way be made to pay the debt, or if the whole were sold and a surplus produced, to have the surplus, to the extent of the value of her undivided half, paid to her. After the execution of this mortgage, she was in precisely the same position that she would have been if it had been written in the mortgage that as to her half of the land she was merely surety for her husband. While she was in this position, Cook and Sweet purchased at the sheriff’s sale under the judgments against Mrs. Boop, and obtained the sheriff’s certificate of sale. They thus became the equitable owners of all her interest in the land, and could as such, if they had no other title, insist that the undivided half of *598the land which belonged to Mr. Roop should be made primarily liable for the payment of the mortgage. But their position was still further fortified by their purchase and deed under the foreclosure of the Meyer mortgage. Their title under that deed related back to the date of" the mortgage, July, 1875, and it was just such a title as she could have given them if at that date she had by deed conveyed to them the same interest and estate which was covered by the mortgage. After the execution of the mortgage, she could not by any conveyance or agreement with any person, without the consent of the mortgagee or those holding under him, diminish or alter her estate, interest or right in the land mortgaged—that is, she could not charge her half equally with the other half with the payment of the debt, as if she were one of the principal debtors. By the purchase under the mortgage, Cook and Sweet took the precise position which Mrs. Roop occupied at the time she executed the mortgage, and they acquired the same right which she then had to insist that the undivided half of the land belonging to Mr. Roop should be primarily liable to pay the debt. It is therefore wholly unimportant to take any notice of the conveyances executed by Mrs. Roop to Mrs. Thayer, or to consider the effect of any of the- transactions of Mrs. Roop 4with Mrs. Thayer or any other persons subsequent to the date of the mortgage.
• This surplus was produced by the sale of the whole title to the premises, which took place in March, 1878 ; and as it was less than one-half of the proceeds of the sale, the court below committed no error in awarding such surplus to the respondents Cook and Sweet.
The judgment should be affirmed, with costs, against the appellants.
All concur.
. Judgment affirmed.