Peters, C. J.
After tbe previous decision in this case, as see 87 Maine, 477, tbe appellant, Mitchell, tbe assignee of Haskell, tbe insolvent debtor, was allowed to amend bis claim agreeably to that decision, by substituting therefor an account for cash paid by said Haskell for tbe use of tbe Brockway Manufacturing Company and interest, amounting in all to fifteen hundred and seventy-one dollars and seventy-three cents. At tbe bearing on tbe appeal in the *124court below, Robinson, tbe assignee of tbe corporation, was allowed to amend his objections to the claim as originally filed; and in addition to a general objection alleging that upon a full settlement there was nothing dhe from the corporation to said Haskell, he specifically stated, as a further ground of objection, that “on the 26th day of December, 1888, said Haskell jointly with five other individuals, signed and delivered to one Samuel G. Damren six notes, each for the 'sum of four hundred and fifty dollars, with interest, and payable respectively in four, eight, twelve, sixteen, twenty and twenty-four months from date; that said Haskell, without lawful' authority, took and appropriated the funds of the Brockway Manufacturing Co. for the payment of said notes with interest thereon, amounting in all to the sum of twenty-eight hundred and eighty-nine dollars, and that said Haskell thereby became bound to account for said sums to the Brockway Manufacturing Co., and to pay the same to the said Brockway Manufacturing Co., for the benefit of its creditors; and said Robinson claims to offset said amount .... together with interest thereon .... the whole amount being thirty-one hundred and seventy-seven dollars and ninety cents, against the claim of said Mitchell as assignee of said Haskell as aforesaid.”
At the hearing in the court below, the following facts were admitted by the parties: That on the 26th of December, 1888, I. N. Haskell and five others bought out all the shares of the Brockway Manufacturing Company which had then been issued, from the original owners, with the exception of four which were retained by said owners; and in payment therefor gave the six notes above referred to in the amended objection filed by the appellee, twenty-seven of said shares, of the par value of one hundred dollars each, being transferred directly to the purchasers of said stock, and a portion, at a later date, viz: January 9, 1889, but as a part of the same transaction, being surrendered to the treasury as treasury stock, by the original holders; that by this transfer the signers' of said notes received stock as follows, viz:— I. N. Haskell five shares; the others — various amounts aggregating twenty-two shares; and forty-two shares were surrendered into the *125treasury and cancelled; that I. N. Haskell was then made director and treasurer of said corporation, and continued to hold both offices until the filing of the petition in insolvency, August 26, 1892 ; that from time to time as the above notes matured, they were paid by said Haskell from the funds of the Brockway Manufacturing Company; that this was done without fraudulent purpose on the part of said Haskell or the other stockholders, and with the assent of all the stockholders and directors of the Brockway Manufacturing Company, including the signers of the notes, and was in accordance with the imderstanding between the parties to said transfer, at the time when the notes were given, December 26, 1888, but without any vote either by the stockholders or directors authorizing such payments, and that no account of such payments appears upon the account books of the corporation.
The appellee admitting that Haskell had paid, for the use of the company, the sums specified in the claims filed against the corporation in this case, claimed that there should be allowed in set-off or recoupment against Haskell’s claim, the full amount of money applied, as aforesaid, by him to the payment of the six notes dated December 26, 1888, or so much thereof as would be sufficient to cancel the claim of fifteen hundred and seventy-one dollars and seventy-three cents, while the appellant claimed that, at most, only Haskell’s proportionate part of said amount, viz: — five twenty-sevenths, agreed to be the sum of six hundred and ten .dollars, should be allowed.
■ The presiding justice thereupon ruled that the appellee would be entitled to be allowed in set-off against the claim of the appellant said sum of six hundred and ten dollars, and no more, and entered a decree accordingly.
To this ruling the appellee excepts, and prays that his exceptions may be allowed.
We think that, in this proceeding, Haskell must answer for the full amount, or so much of it as is necessary, to balance the claim here preferred by -his assignee.
Whatever rule might obtain, if-this were a proceeding to enforce the liabilities of a stockholder under our statutes, we think that *126the case discloses in its facts a diversion of its property and assets to the detriment of creditors. The case is very like that of a trustee secretly applying the trust property to his own use. To hold otherwise would be a contradiction of the plain proposition that the stock and property of every corporation is to be regarded as a trust fund for the payment of its debts, and that its creditors have a lien thereon and the right to priority of payment over any stockholder. The payment of the amount claimed by Haskell for the benefit of the corporation amounted in law to an application of that sum in reduction of his indebtedness to the company, and therefore a reduction of its assets to that extent. It is well settled 'by numerous authorities that the stockholders of a corporation have no rights until all other creditors are satisfied. They have the full benefit of the profits made by the establishment, but cannot take any portion of the funds until all other claims on them are extinguished. Their rights are not to the capital stock, but to the residuum after all demands on it are paid. Wood v. Dummer, 3 Mason, 311; Sanger v. Upton, 91 U. S., 60. Creditors may hold the company’s agents liable for wasting assets which are needed to satisfy their claims, on the ground that it constitutes a misapplication of trust funds.
We are of the opinion, therefore, that Haskell from time to time had these funds in his possession, belonging to the corporation, which he was bound to apply only to the legitimate purposes of the corporation; and that if he chose to apply them otherwise while acting as treasurer or director, either for his own benefit or for the benefit of any one else, he thereby became responsible for the whole amount so converted. So long as he held the money in the treasury of the corporation, it was there to answer for its debts if necessary; and it should have been devoted to that object so long as it might be required for that purpose. If he withdrew it, except according to law, he did so subject to that trust — the trust for the payment of debts of the corporation, and needed for that purpose, Williams v. Boice, 38 N. J. Eq. 364; and it is immaterial whether he got the money by fair agreement with his associates or by a wrongful act. Bartlett v. Drew, 57 N. Y. 587.
*127The defendant in Ms argument admits that the transaction detailed above amounted undoubtedly to a withdrawal of a portion of the principal of the capital stock of the company, within the meaning of the R. S., c. 46, § 37; and that the payment for the twenty-seven shares of stock out of the funds of the company, by which transaction Haskell received the par value of his stock without cost to Mmself, was illegal as against its creditors. But he argues that the only duty of Haskell as treasurer was as agent of the company; and he urges that Ms only duty in relation to the funds of the company was to keep them safely and to pay them out, or otherwise dispose of them, as he might be directed by the corporation. And he cites from the opinion in the case of Taylor v. Taylor, 74 Maine, 584, that: “He is accountable to the corporation and to the corporation alone, and to the corporation he has done no wrong.” That case was a bill in equity by an assignee in insolvency to vacate a fraudulent preference, and it was sought to sustain the bill upon the further ground of a breach of trust. But the court held that under the allegations in the bill it could not be supported upon that ground. It was sustained as a fraudulent preference under the insolvent law. It will thus be seen that the two cases are dissimilar. In our view, as already expressed, he is accountable, and because he has done wrong to the corporation by an unwarranted withdrawal of its funds for an illegal purpose whereby creditors have been wronged.
In the allowance of debts and claims in bankruptcy and insolvency, the court proceeds upon principles and considerations that are equitable in their character. It has been accordingly held that an assignee may vacate a preference which was given by the directors of an insolvent corporation to a firm of which a director was a member, although it was given more than four months before the commencement of the proceedings in bankruptcy. Bradley v. Farmell, 1 Holmes, 433.
According to the agreement of the parties, the entry will be made,
Decision of the judge of insolvency affirmed.
Appeal dismissed.