the respondent, before filing his lien, had received, of the moneys paid to Colleran on this job by the owner,, the sum of $1,114, part of which had been paid by Colleran, the principal contractor, and part by Andruss, the first subcontractor. Five hundred dollars of the moneys received from Andruss was applied by the respondent (with the consent of the former, as it is claimed) upon an old debt due him from Andruss, arising on other transactions entirely disconnected with the work in question. There is no evidence, however, that the principal contractor knew of this appropriation until after Andruss stopped work, and, when it came to his knowledge, he objected to such appropriation, and claimed that it should be applied to the payment for the work done by the respondent upon the buildings in question, as appears by the testimony of the respondent himself. The appellant, Colleran, in his answer claimed that this $500 was paid on account of the work done by the respondent, and maintained this position on the trial. But the learned trial judge held that the respondent had the right to apply it as he did, and refused to allow it as a payment upon the Contract made by the respondent with Andruss. This raises a novel question, and that is whether a contractor may appropriate moneys received under a building contract to the payment of an old debt, or must apply it under the contract under which he does the work. That he may apply it as was done in this case is supported with much ingenuity by the respondent. It is quite true that until a mechanic files his lien he is only a general creditor of the owner or principal contractor.
Payne v.
Wilson, 74 N. Y. 355 . It is also true that where payments are made under the law-merchant or upon an open account, etc., the creditor, in the absence of a special agreement, may apply the money received upon the earlier debt, and indeed, if he does not, the law will so apply it for him. It was contended on the argument that the money received was like any other money, and might be applied on any debt which the subcontractor saw fit. This leaves out of view entirely the scheme and object of the mechanic’s lien act. It has been uniformly held that moneys due or to grow due from the owner on a building contract constitute a fund to which the liens of subcontractors attach when filed in conformity with the statute. To support this, it is only necessary to refer to some of the later decisions on that subject.
Crane v. Genin, 60 N. Y. 127 ;
Payne v.
Wilson, supra; Post v.
Campbell, 83 N. Y. 282 ;
Gibson v. Lenane, 94 N. Y. 183 ;
Larkin v. McMullin, 120 N. Y. 206 , 24 N. E. Rep. 447 . Most of the cases last cited are also authority for holding that this fund can only be diverted from its object by
bona fide payments made by the owner in accordance with the terms of his contract. Consequently it has been held that, as between the owner and one who has furnished labor or materials to the contractor, the owner can plead only damages growing out of the original contract through the fault or negligence either of the contractor or subcontractor, abandonment of the contract, defective work, and the like.
Cheney v.
Troy Hospital, 65 N. Y. 282 ;
Miller v.
Moore, 1 E. D. Smith, 737;
Gourdier v.
Thorp, Id. 698;
Develin v.
Mack, 2 Daly, 100 . A general indebtedness cannot be set off as against a mechanic by parties standing between him and the owner.
Hagan v.
Society, 14 Daly, 131 ;
Hoyt v.
Miner, 7 Hill, 525 ;
Develin v.
Mack, supra; Bullock v.
Horn, (Ohio,) 7 N. E. Rep. 737 . In the latter case it was held that where a mechanic who, under the employment of a contractor, and with the knowledge of the owner, had performed labor upon the construction of a building, and had taken the necessary steps to obtain a lien upon the premises, and brought his action against the owner to recover the amount due and have the same declared a lien, such owner could not be allowed to set off a claim against the contractor not growing out of the contract, acquired by him after the labor was performed, although such claim was acquired before notice that the mechanic’s demand had not been paid. To such an extent have the courts gone to preserve the fund for the payment of the material-men and laborers. And in
Stevens v.
Reynolds, (Sup.) 7