The opinion of the court- was delivered by
Dunbar, J.This was an action commenced in the superior court of Whatcom county by respondent against appellant to foreclose a real estate mortgage executed to secure the payment of a promissory note amounting to $12,-000. The answer was a general denial and an allegation that the attorney’s fee claimed by respondent was excessive and unreasonable. An attorney’s fee of $1,600 was *506fixed by the provisions of the mortgage, and this amount was allowed by the court. The appellant offered to show by different practicing attorneys in Whatcom county that the reasonable and current fees for the services incident to the foreclosure of this mortgage would not exceed the sum of $200. The court refused to admit such testimony. Appellant also offered to show by the attorney for the respondent that he was to receive not to exceed $200 for the foreclosure of the. mortgage. The court refused to allow the witness to testify upon this subject on the ground that it was immaterial, to which appellant also excepted. The court refused to permit the appellant to introduce any testimony tending to show what was a reasonable attorney’s fee, so that it will be seen that the only question to determine in this case is whether a mortgagor is bound by the attorney’s fee provided in the note and mortgage, where such fee is expressly provided. It has been frequently decided by this court that where an attorney’s fee was agreed upon in a note or mortgage the payor or mortgagor, as the case might be, was bound for the amount stipulated in -said note or mortgage. This question was expressly decided in Exchange National Bank v. Wolverton, 11 Wash. 108 (30 Pac. 248); Watson v. Sawyer, 12 Wash. 35 (40 Pac. 413); Haywood v. Miller, 14 Wash. 660 (45 Pac. 307); Poncin v. Furth, 15 Wash. 201 (46 Pac. 241); Ames v. Bigelow, 15 Wash. 532 (46 Pac. 1046); and the same proposition in substance has been decided in many other cases. It is conceded by the appellant that such has been the uniform decision of this court, but he asks the court to again enter into an investigation of the question and insists that the amount of attorney’s fee provided in this instrument, over and above the amount which is necessary to pay for the legal services in foreclosing the mortgage, is in the nature of a penalty and should not be enforced by the courts. *507Many cases are cited by tbe appellant holding in substance tbat contracts for attorney’s fees are under tbe power of tbe court and ought not to be enforced by it unless it plainly appears to be reasonable and just, and tbis is no doubt a correct and wholesome principle in cases where such contracts are under tbe power of tbe court, as they were in tbe cases cited. But in tbis state tbe legislature, exercising its legal authority to legislate on tbis subject, has taken this matter out of tbe bands of tbe court and has provided in section 803 of tbe Code of Procedure tbat
“ In all judgments on promissory notes, and similar instruments in writing, whether secured by mortgage or not, an attorney’s [fee] may be allowed when specially contracted to be paid by tbe terms of tbe note or mortgage in any amount so specially contracted.”
If tbis act is constitutional, and there is no contention tbat it is not, it seems to us tbat it is a plain answer to appellant’s contention; tbe law-making power of tbe state has made tbe amount contracted stipulated damages and there is nothing left for tbe court to do but to enforce tbe contract. It may be, and doubtless is, true tbat abuses and oppressions have grown up under tbis statute, but tbis was a policy which was submitted to tbe judgment of tbe legislature, and, they having adopted that policy, there is no discretion left in tbe courts. There is a question in this case, however, which, if it bad been properly presented, would call for consideration, and tbat is tbe attempt on tbe part of tbe appellant to show tbat a contract existed under tbe terms of which tbe attorney for tbe respondent was to receive a less amount for bis services than tbe amount specified in tbe contract. But tbis question was not raised by tbe pleadings in tbis case, as we have before seen; so far as tbe pleadings are concerned, touching tbis question there was simply an allegation tbat tbe attorney’s fee *508claimed by respondent was excessive and unreasonable, and there is no allegation to sustain the proof offered. It is contended, however, by the appellant, that inasmuch as this is an equity proceeding, under rules announced by this court and other courts, the pleadings- might be considered amended in accordance with the proof offered, but this rule, must be accepted with some qualifications, and should not be invoked when it would evidently work an injury to the other party by taking him by surprise, and by compelling him to litigate an essential question concerning which he had had no notice. It is claimed by the appellant that there was no objection made to this testimony, but an examination of the record convinces us that there was a substantial objection duly made. Ho attempt was. made to amend the pleadings when such objection was offered, and we think this was a question concerning which the respondent must have had notice so that he would have been prepared to have litigated that question. In the absence of such allegation and in consideration of the objections urged to the acceptance of the testimony offered we think it was properly rejected. The subsequent law on this subject (laws 1895, p. 81, Bal. Oode, § 5166), which was enacted after the contract in this ease was made, can only be regarded as a change of legislative policy, and, in accordance with well established principles, can not affect prior contracts.
The judgment is affirmed.
Scott, O. J., and Anders and Gordon, JJ., cpncur.