Sewell & Smith Construction Company (the contractor) agreed to construct a factory addition for Gould-National Batteries, Inc. (the owner) for $133,000. 1 *857 Framingham Trust Company (the bank) agreed to provide the financing on the security of an assignment of the contractor’s present and future accounts receivable, which financing agreement was duly executed and recorded. American Casualty Company (the surety) furnished the performance and payment bonds for the contractor as required by the owner. On default by the contractor, the surety completed the work at an outlay of some $3000, paid some $50,000 to previously unpaid laborers and material-men, and then sought to be reimbursed by the owner out of the unpaid balance owing for the completed work. The bank concedes the surety’s right to the $3000 for completion of the work, but claims that it — not the surety — is entitled to the remainder of the unpaid balance held by the owner at the time of default. The owner, having conceded liability for the unpaid balance, is involved only as the stakeholder. 2
The district court granted summary judgment for the bank, holding that its rights as assignee with a perfected security interest had priority over the subrogation rights of the performing surety.
3
“is subrogated not only to the right of the government [the owner] to pay laborers and materialmen from funds retained out of progress payments [citing cases], but also to the government’s right to apply to the cost of completion the earned but unpaid progress payments in its hands at the time of default [citing cases].
The bank concedes the second proposition but contests the former. However, that proposition was reaffirmed in American Fire & Casualty Co. v. First National City Bank of New York,
First, as indicated by our decision in
American Fire & Casualty Co., supra,
we do not understand the propositions enunciated in
National Shawmut Bank
to be confined to cases arising under the Miller Act, where the United States is the owner. The government’s well established right to have the laborers and materialmen paid out of the unpaid progress payments or unpaid balance does not arise from any legal obligation to such suppliers but simply from its equitable obligation to those who provide it with labor and materials. United States v. Munsey Trust Co.,
Therefore, since both the government and the non-government owner have the right to pay their suppliers out of the unpaid balance,
7
the performing
*859
surety, through subrogation, is entitled to assert that right, and prevail over the secured creditor.
National Shawmut Bank, supra,
In sum, we cannot escape the conclusion that in both a practical and a legal sense, the payment of previously unpaid laborers and materialmen is a cost of completing the contract.
In No. 7524, the judgment should be reversed and judgment entered for the surety for the entire unpaid balance in the possession of the owner at the time of default, the surety’s cost of completing the contract and paying the previously unpaid laborers and materialmen having exceeded the amount of such unpaid balance. In No. 7523, the judgment should be reversed and the action dismissed.
Reversed and remanded for appropriate action.
Notes
. The pertinent provisions are Article 5 of the Contract, and Articles 22, 26, 32, 36 and 37 of the General Conditions of the American Institute of Architects, which were incorporated by reference into the main contract. Summarized, the contractor’s right to final payment was conditioned on satisfactory completion and *857 on evidence that all bills had been paid (Article 5); the owner had the right to terminate if the contractor should fail to make prompt payment to subcontractors or for material and labor (Article 22) ; the owner’s architect had the right to withhold the certificate prerequisite to any payment, to protect the owner from loss on account of failure of the contractor to pay subcontractors, laborers, or materialmen (Article 26) ; final payment was to be conditioned on a release of all liens or its equivalent (Article 32); and no contractual relation between owner or subcontractor or obligation on the part of the owner to pay any subcontractor was created by the contract (Articles 36 and 37).
. The case presently before us began as two separate suits. In No. 7523, the bank sued the owner in a state court for the unpaid balance held by the owner at the time of default. That case was removed to the federal district court and consolidated with No. 7524, wherein the surety sued the bank, the owner, and the contractor’s receiver in bankruptcy for the same unpaid balance.
. In so holding, the court did not place any reliance on the priority in time of the bank’s security interest, deeming this fact of “some general equitable significance * * * [but] irrelevant to an analysis of the Surety’s rights under the doctrine of equitable subrogation”. We agree. American Fire & Casualty Co. v. First National City Bank of New York,
. We acknowledge a ease note arrestingly captioned “National Shawmut Bank: Another Step Toward Confusion in Surety Law”, 64 Northwestern L.Rev. 582 (1969). While we are chided for not holding that the surety’s interest was a security interest subject to the filing and priority provisions of the U.C.C., we take comfort from 'the observation that we were in harmony with the approach of French Lumber Co. v. Commercial Realty & Finance Co.,
. The equitable obligation — as
Munsey Trust Co.
and the other cases cited in text
supra
clearly suggest — does not arise by operation of the Miller Act or its predecessors but simply from a recognition of “the peculiarly equitable claim of those responsible for the physical completion of building contracts to be paid from available moneys ahead of others whose claims come from the advance of money.” Munsey Trust Co.,
supra,
. Article 22 of the General Conditions impliedly recognizes this interest. By specifying that the owner can terminate the contract when bills for labor and material are not promptly paid and can proceed to finish the job, the Article suggests to us that payment of the bills is part of finishing the job.
. The bank,
not
the district court, relies on Ehrlich v. Johnson Service Co.,
. We note that section 1 of chapter 254 allows liens for labor alone to be filed for prior work done with the owner’s consent within forty days of filing. Since subcontractors, or employees of the contractor or subcontractor, could have claimed such liens at the time of default, surely it could not be argued that allowing reimbursement from unpaid balances to the surety who paid such claims circumvented the lien statutes. Indeed, payment by the surety, a more expeditious procedure than pursuing bills in equity to decree, would in such case be supportive of the lien system.
