after stating the case: The contention of the defendants is that chapter 150 of Public Laws 1913 repeals sections 2021 and 2022 of the Revisal in respect to the lien of mechanics, laborers, artisans, for work and labor done in the construction or repair of a 'railroad, and of persons who furnish material for the same, and that now the only lien, and remedy to enforce it, is that given by the said act of 1913, and that as plaintiff’s notice of lien was not filed with the railroad company in this case within the time fixed by section 2018, they cannot recover; while the plaintiff contends that section 2021 was not repealed by Laws of 1913, and is still in force, and as the notice was given within the time fixed by section 7 of chapter 150 of those laws, they are entitled to recover the full amount due to them by the subcontractors to whom they furnished the materials which were used on sections 19, 20 and 21 of the railroad.
The referee held with the defendants, and the judge sustained plaintiff’s exceptions to the report of the referee, but gave judgment only for a part of the claim, though he was of the opinion that the Laws of 1913 did not repeal sections 2021 and 2022 of the Revisal. This conclusion was reached because the presiding judge held that the amount to be recovered did not depend upon the state of the account between the owner of the railroad and the contractor, but upon that between the contractor and the subcontractor.
The judge held correctly that chapter 150 of the Laws of 1913 did not repeal section 2021 of the Revisal, but we think he erred in holding that the state of the account between the owner and the contractor is not the standard by which to measure the amount of the plaintiff’s recovery.
The Laws of 1913 did not repeal section 2021 of the Revisal because, on its face, it purports simply to amend it as follows: “And after the notice herein provided is given, no payment to the contractor shall be *431a credit on or a discharge of- the lien herein provided.” It would appear from this that the Legislature intended to continue that section in full force and effect. Chapter 150 of the Laws of 1913, contains the following sections:
“Sec. 9. That all local lien laws are hereby repealed, and all laws and parts of laws in conflict with this act, whether local or public, are hereby repealed.
“Sec. 10. This act shall be in force from and after its ratification.”
Those sections do not repeal section 2021 of the Eevisal because there is no conflict between that section and the Laws of -1913, chapter 150. The supposed conflict is said to exist between section 2021 of the Eevisal and section 2018, as it appears in the Laws of 1913, chapter 150, but the two sections can be easily reconciled.
Section 2018 was amended by Laws of 1913 so as to extend the benefit of its provisions to those persons who furnish materials, and, further, it allows notice to be given to the railroad company, in the case of a laborer, within twenty days after the performance of labor for thirty or a less number of days, and, in the case of one who has furnished material, where the contractor has become indebted for more than thirty days for material, the notice must be given within thirty days after the materials were furnished, by the person who furnished the materials.
Under section 2021 and section 2028, as amended by the Laws of 1913, chapter 150, the statement of the account is required to be delivered to the owner at any time before he has paid the contractor and within six months after the completion of the labor or the final furnishing of the materials. It, therefore, appears that there is a substantial difference between section 2018 and section 2021 as amended by the Laws of 1913. Besides, section 2028, as amended by those laws, reads as follows: “Notice of lien shall be filed, as hereinbefore provided, except in those cases where a shorter time is prescribed, at any time within six months after the completion of the labor or the final furnishing of the materials or the gathering of the crops.” The “shorter time” here mentioned evidently refers to the notice required to be given by section 2018, and it was intended to provide for a longer time within which to give notice, that is, six months, where the transaction has been completed by the “final furnishing” of the materials, and this is that kind of a case. The notice, therefore, was given in due time and it becomes unnecessary to consider the question raised as to the legal effect of the garnishment proceedings.
The second question relates to the amount of the recovery. The court held that plaintiff was entitled to recover the sum of $1,028.69, while the plaintiff insisted that it was entitled to judgment for the full amount of its claim, or $1,526.67, and whether the one amount or the *432other should be allowed depends, as we have intimated, upon the question whether the true amount is to be determined by the state of the account between the railroad company and the contractor or between the latter arid his subcontractor. It is manifest from a simple reading of the statute, as we think, that its meaning is that the plaintiff shall receive the full amount of his just claim for materials furnished by it, provided there is so much due by the railroad company to the contractor when the notice is given, as provided by the law, and it has been so held by this Court.
The question arose in Brick Co. v. Pulley, 168 N. C., 371, where, as the syllabus of the case shows, the Court decided: “The claimants for liens for material, etc., furnished for building, under Revisal, secs. 2020 and 2021, are not only required to show, in order to establish their liens, that the materials were actually used in its Construction, but that they were furnished to some one having contract relations to the work. Re-visal, sec. 2019. One who has furnished material used in the construction of the building under contract with the subcontractor, by giving the proper notice to the owner, is substituted to the rights of the contractor, and his lien is enforcible against any and all sums which may be due from the owner to him at the time of notice given or which are subsequently earned under the terms and conditions of the contract. Revisal, secs. 2019, 2020, 2021. One furnishing material to a subcontractor, which is used in a building, who gives to the owner the notice required by statute before payment made to the contractor, acquires a right to enforce his statutory lien regardless of the state of the account between the contractor and the subcontractor.”
Justice Holce says, in the opinion of the Court as delivered by him: “Where such lien arises under the provisions of the statute, it does so by substituting the claimant to the rights of the contractor, enforcible, as stated, against any and all sums which may be due from the owner at the time of notice given or which are subsequently earned under the terms and stipulations of the contract. In well-considered cases it is said to amount to an assignment pro tanto of the amount due or to become due from the owner to the principal contractor, and this regardless of the state of the account between the principal contractor and the subcontractor, who may be the debtor of the claimant.”
And again, when quoting from Vogel v. Luotwieler, 130 N. Y., 190: “The respondent makes the further point that 'it does not appear that the contractor is indebted to the subcontractor, Poppet, for the work and labor and material furnished in painting the house, and for that reason the appellant did not establish a valid lien on the premises. We cannot assume that Poppet has been paid, and until the contrary appears, it may be presumed that he has not been, as a liability once *433created is supposed to continue until it is shown that it has been discharged. But if it appeared that Poppet had been paid for the work and labor which he performed, the right of the appellant to place a lien upon the premises as a security for his debt was not thereby extinguished, for the right was secured to him by statute, and its validity is not made to depend upon the question whether his vendee had been paid by the party with whom the latter contracted to do the work and labor. Such a construction placed upon the. statute would contravene and defeat its express.objects and purposes, and so far as it was intended as a protection for materialmen and laborers it would enable the contractor and subcontractor, by concert of action, to deprive them of the benefits of the statute.”
The same was held in Powell v. Lumber Co., 168 N. C., 632, the legal purport of that ease being that where the furnisher of material to a subcontractor has notified the owner of the building or other structure upon which the work is being done and perfected his lien, as required by the statute, and it appears in an action to enforce the lien that the owner is still indebted to the principal contractor in a sufficient sum to pay the amount due for the materials which, as here, have been used in the work of construction, the same is applicable to the payment of the claimant’s demand to the extent necessary for that purpose, regardless of the state of accounts between the contractor and the subcontractor, citing Brick Co. v. Pulley, supra.
Any injustice in disregarding the state of the account between the contractor and the subcontractor is more apparent than real, if there is any .at all, for the contractor can protect himself by the exercise of proper care and diligence. The idea is'that the materials have benefited the property upon which they were used — here that part of the railroad allotted to the subcontractor — and it is nothing but right that the materialman should be compensated. The railroad company is not harmed because it only pays out what it justly owes.
The court should have given judgment for the full amount of plaintiff’s claim, and it will be corrected in this respect.
Error.