(after stating the facts as above). [1] Was the cause properly removed? To ascertain the removability of a cause on the ground of the existence of a separable controversy, these tests are established:
(1) There must be a separate and distinct controversy between the removing party and his adversary, which can be fully determined as between them.
(2) The whole subject-matter must be capable of. being so determined, and complete relief afforded as to the separate cause of action, without the presence of others originally made parties to the suit. Thayer v. Life Ass’n, 112 U. S. 717, 5 Sup. Ct. 355, 28 L. Ed. 864; Railway Co. v. Wilson, 114 U. S. 60, 5 Sup. Ct. 738, 29 L. Ed. 66; Crump v. Thurber, 115 U. S. 56, 5 Sup. Ct. 1154, 29 L. Ed. 328; Brooks v. Clark, 119 U. S. 502, 7 Sup. Ct. 301, 30 L. Ed. 482; Brown v. Trousdale, 138 U. S. 389, 11 Sup. Ct. 308, 34 L. Ed. 987; Torrence v. Shedd, 144 U. S. 527, 12 Sup. Ct. 726, 36 L. Ed. 528; Wilson v. Oswego Township, 151 U. S. 56, 14 Sup. Ct. 259, 38 L. Ed. 70.
*110The application of these tests involves recognition of the elementary principle that, in determining the jurisdiction of federal courts and the removal of causes thereto, indispensable parties only are considered — - all others may be dismissed or disregarded if their presence would oust the jurisdiction or restrict the right.
[2], The inquiry therefore is: What is the nature of the suit or controversy disclosed by complainant’s bill; the object sought to be accomplished and the relief grantable; the essential determination therein; and, finally, the parties indispensably necessary to the accomplishment of such object and the granting of such relief?
. The ultimate facts disclosed by the bill may be thus further summarized :
(1) That Moloney and Cressler entered into a contract for the purchase by the former from the latter of the gas stock described, at the price stipulated in the contract.
(2) That, to induce Moloney to make the purchase, Cressler made certain representations respecting the condition, equipment, and capacity of the gas plant owned by the corporation whose stock was the subject of purchase and sale.
(3) That Cressler also agreed, in consideration of the purchase and sale, to make specified changes and alterations in such gas plant, which were to cost an amount stated, and which, when made, would improve its condition and increase its efficiency.
(4) That representations made by Cressler respecting the condition, equipment, and efficiency of the plant, were false; that he failed to perform his agreement to improve the plant.
. .(5) That Moloney has paid a portion of the agreed purchase price— the balance he seeks to set off, or recoup against the damages sustained by him through the false representations, and the breaches of the agreement to improve the plant, whereof Cressler was guilty, as alleged.
(6) That Moloney has endeavored to induce Cressler to adjust the dispute which has arisen between them. He is read}'' and willing to pay such amount as, upon the determination of such dispute, may be found due from him to Cressler.
(7) By the agreement the gas stock was deposited with the defendants Harris & Co. to abide Moloney’s performance in respect of payment. They now hold such stock, and he has demanded it. At the time of removal they had filed an, answer disclaiming any interest in the stock and in certain funds in their hands; and offered to surrender the same as, and to whomsoever, the court may direct.
The appellant contends that the controversy, or the cause of action comprehended within the bill, pertains to the assertion and enforcement of the right which he acquired through his contract with Cressler, his right to the stock which is the subject-matter of that contract; that the dispute between the parties is over the performance of the reciprocal obligations of such contract, upon which depends the successful assertion of complainant’s rights; that, although complainant has not paid the full stipulated money consideration to the defendant Cressler, yet the latter, through his actionable misrepresentations, through his breaches of the obligations to improve the gas plant, has damaged *111complainant in an amount which, if and when ascertained and allowed, will more than equal the unpaid balance of such consideration; and the claim is made that such damages should, in equity, be set off and recouped against, or treated as the equivalent of, such balance; that the controversy thus tendered is one and inseparable, having but a single ground for the relief — which latter, to be adequate, must include compulsory surrender of the stock by Harris & Co. who have it in their possession.
On the other hand, to support the removal of the cause, it is urged by the appellee Cressler that it affirmatively appears that complainant has no recourse against the defendants Harris & Co. because the conditions of the escrow agreement have not been complied with; that an ascertainment of complainant’s damages alleged to have arisen through Cressler’s misrepresentations and breaches of the agreement can be had only upon the trial of what are really separate causes of action at law upon which affirmative relief may be awarded; that Harris & Co. have no interest therein and, for the determination thereof,’■ are neither indispensably nor properly in the suit. Hence the controversy between Moloney and Cressler is asserted to be separable within the meaning of the removal act; and they alone are indispensable to the determination thereof; that Harris & Co. can be party to no controversy relating to the title of the stock until complainant has paid the consideration of, or performed, the contract; that the purpose of complainant’s bill is to determine the state of the account between him and Cressler, and, until that is accomplished, he can enforce no right whatever against Harris & Co. as escrow, and they are not properly in court.
Upon the question of removability, we are concerned, as stated, with the nature of the controversy, its essential elements, and not its merits. Whether the cause of action, whose nature and purpose is disclosed, is legally sufficient, or whether the facts, if true, entitle complainant to relief, are not relevant inquiries. If therefore respect be given to the allegations of the bill showing that the contract for the purchase of the stock is the foundation of the relations between the complainant and both defendants Cressler and Harris & Co., that the dispute arises out of such contract, that such dispute concerns merely complainant’s asserted right to the stock which was the subject-matter of the contract, if, further, we respect the prayer of the bill expressly asserting the object to be an adjudication of complainant’s title and ownership of such stock, we are fairly warranted in saying that the suit is one to compel specific performance by the defendants of their obligation under such, contract to vest the stock in complainant, when he had performed. Now it may be that complainant would, independently of such purpose, have a right of action at law against the defendant. Cressler for damages arising either through the false representations or through the breaches of the agreement, or that he could recover the reasonable value of professional services rendered as stated in the bill. But, when the dominant contract relation between the parties is considered in connection with the expressed purpose sought to be accomplished, then these so-called affirmative grounds of relief become *112significant only as subordinate elements through which complainant seeks to' establish his main ground of performance — -upon which latter he asserts his right. They have an evidentiary purpose only. True, they may not establish payment or performance, or the equivalent thereof; but that does not call in question the real nature of complainant’s suit, nor the ultimate object sought to be accomplished as one of specific performance. To say that, because the bill affirmatively shows a failure to pay the stipulated money consideration, it therefore fails to state any grounds for relief against the escrow or bailee, is but to deny what complainant seeks to establish — a denial of merit, but, by implication, an admission of the character of the suit and the object sought to be accomplished. In effect, it is an assertion that the cause should not be removed because complainant cannot prevail upon the merits against one of the defendants; whereas, the test is whether such defendant need be present to enable complainant to press the controversy, and, if successful, to obtain the full relief to which he is .entitled.
The controversy therefore concerns complainant’s right to the stock which was the subject-matter of the contract with the defendant Cressler. The essential elements to be established in order that he may prevail in the assertion and enforcement of that right are (1) the contract, (2) his performance, and (3) the refusal of defendant. Now the right, to be thus asserted and enforced, is not satisfied by an adjudication that Cressler, who agreed to sell the stock, perform his obligation; but that every one who, by virtue of that contract, could withhold from complainant the enjoyment of the right if he has not performed his obligation, shall also perform — and yield the title and possession, if the complainant is adjudged to have performed. In other words, to maintain his suit against Cressler, complainant must establish the contract and that he has paid or performed. To maintain it against Harris & Co. he must establish that he has paid or performed. Either can or could refuse to give up the stock solely upon the ground of nonperformance. That is the only ground of the controversy.
The view that Harris & Co., holding the stock under the contract whose enforcement is thus sought, are indispensably necessary parties to a suit brought for that 'purpose, is fully supported by St. Louis & San Francisco Ry. Co. v. Wilson, 114 U. S. 60, 5 Sup. Ct. 738, 29 L. Ed. 66; Wilson v. Oswego Township, 151 U. S. 56, 14 Sup. Ct. 259, 38 L. Ed. 70; Construction Co. v. Cane Creek Township, 155 U. S. 283, 15 Sup. Ct. 91, 39 L. Ed. 152; Crump v. Thurber, 115 U. S. 56, 5 Sup. Ct. 1154, 29 L. Ed. 328.
The importance of the question as one of jurisdiction justifies an analysis and review of three of these cases.
In St. Louis & San Francisco Ry. Co. v. Wilson, complainant, a citizen of Missouri, brought suit against a Missouri corporation joining two codefendants, citizens of New York, praying for the transfer to him of stock in said corporation standing in the name of such co-defendants. After removal, the cause was ordered remanded; and the Supreme Court, affirming such order, said; .
*113“There Is but one controversy in this case, and that is as to the duty of the railroad company (defendant) to transfer to Wilson (complainant) the stock standing in the name of the Seligmans on its hooks and to issue new certificates therefor. Upon the one side of that controversy is the plaintiff, a citizen of Missouri, and on the other side the railroad company, a Missouri corporation. The sole purpose of the suit is to establish the duty and enforce its performance. This cannot be done without the presence of the company, for it is upon the eoihpany itself that the decree must operate. The Seligmans are made parties only in aid of the principal relief which is asked. As the stock stands in their names on the books, the company may well claim a judicial finding in the cause which shall bind them, if upon the final hearing a transfer is ordered. The suit therefore is in truth and in form against both the company and the Seligmans on a single cause of action, and cannot be removed unless the separate answer of the Seligmans introduces a separate controversy. This we have held in Louisville & Nashville R. Co. v. Ide [114 U. S. 52, 5 Sup. Ct. 735, 29 L. Ed. 63], just decided, is not necessarily the effect of separate issues under separate defenses to the same action. No relief whatever can be granted unless it is found to be the duty of the company to transfer the stock, and as to that controversy the company is an indispensable party.”
In Wilson v. Oswego Township, the facts were:
A Missouri railroad corporation, as an aid in the construction of its road, received from Oswego township (Kansas) certain bonds. One Burgess, a citizen of Missouri, had contracted for and was proceeding with the contruction work of a portion of the road. Pending this, at the request of Burgess and in consideration of the work performed and to be performed, the railroad company delivered to him and to one Montague (Kansas) as trustee, jointly, -certain of the bonds “upon the agreement and understanding between the railroad company, Burgess and Montague, that upon completion of the work then in progress on the railroad, up to the amount of the value of the * * * bonds, Montague would relinquish for himself and for all others, these bonds to Burgess,'which would then become the absolute property of the latter.” To carry out this arrangement, the bonds were placed by Burgess and Montague, jointly, with the Union Savings Association as trustee or bailee (a Missouri corporation) there to remain until completion of the work by Burgess, then to be delivered to him upon the joint order of himself and Montague. Thereafter, Wilson, as as-signee of Burgess, filed suit in the Missouri state court, the sayings association, railway company, and Montague being defendants therein, charging that Burgess had completed the work as agreed, thereby became entitled to the bonds, and that Montague had ceased to have any right thereto. The railway company defaulted, the Union Savings Association answered offering- to surrender the bonds to the party legally entitled thereto. Oswego Township intervened and joined with Montague in a petition to remove the cause, alleging the existence of a separable controversy.
The Supreme Court reversed the judgment upon the ground that the cause had been improperly removed, saying:
“The plaintiff, as his assignee, claimed that Burgess had complied with and completed his contract, thereby becoming the owner of the bonds, and entitled to their possession; and that thereafter he assigned his right, title, and- interest in the same to the plaintiff, who by his petition only sought to recover possession of the bonds. The Union Savings Association, being the bailee or trustee of the bonds, was a necessary and indispensable party to the relief sought *114by the petition, and that defendant, being a citizen of the same state with the plaintiff, there was no right of removal on the part of Montague, or of the intervening defendant, the Oswego township, on the ground that the Union. Savings Association was a formal, unnecessary, or nominal party. * * *
“Considering the nature of the suit and the .relief sought thereby, these defendants cannot be treated and regarded as purely formal and unnecessary parties. The character of the relief sought made the Union Savings Association, which occupied the position of a bailee or trustee, a necessary and indispensable party. * * *
“Considering the character of the relief sought hs the original bill, and the situation of the parties, it cannot be properly said that the whole subject-matter of the suit was capable of being finally determined between the plaintiff, on the one side, and Montague and the Oswego township, on the other, without the presence of the Union Savings Association, so as to warrant the removal as a separable controversy.”
In Construction Co. v. Cane Creek Township, complainant commenced suit in the United States Circuit Court for the District of South Carolina, against Cane Creek township, a citizen of the latter state, joining as codefendant Boston Safe Deposit & Trust Company, a citizen of Massachusetts, the state of complainant’s citizenship. The bill averred that bonds of the defendant township had been deposited with the defendant trust company, to be delivered to complainant upon completion of a certain railroad as agreed; that the road had been completed, but that the certificate evidencing such completion was wrongfully withheld by the commissioners who were required to execute it; that the defendant trust company had and claimed no interest in the bonds. The prayer was that the defendant township be required to specifically perform its agreement by “assenting to the delivery” of the bonds in the hands of the trust compan}' defendant; and that the latter be decreed to deliver them to complainant. The jurisdiction of the court was challenged because the defendant trust company and complainant were of the same citizenship. Such exception to the jurisdiction was overruled, and complainant was awarded a decree. Obviously, the question presented involved the status of the defendant trust company as a party. Mr. Justice Brewer said:
“The plea to the jurisdiction should have been sustained. The substantial object of the suit was to obtain possession of the bonds. The deposit and trust company was the party in possession, and, although it claimed no interest in the bonds as against the plaintiff and its codefendant, yet possession could not be enforced in favor of the plaintiff except by a decree against it. Where the object of an action or suit is to recover the possession of real or personal property, the one in possession is a necessary and indispensable (and no,t a formal) party. The case of Wilson v. Oswego Township, 151 U. S. 56 [14 Sup. Ct. 259, 38 L. Ed. 70], is decisive on this point.”
In each of these cases, it will be observed, the alleged separable controversy contained the same fundamental element and required the same determination essential to the establishment of complainant’s right, as were involved in the whole controversy. In each, the sole question was whether complainant had performed or complied with the engagement or condition upon which depended his asserted title or right to the possession of the property. True, the party in possession disclaimed interest therein or right thereto; this, however, could not affect the legal aspect or character of the “controversy” disclosed in the bill, but served merely to indicate such party’s attitude toward *115or in the controversy; and, the nature and scope of a controversy having been determined, its separable or removable character calls for an inquiry respecting the status of parties in such controversy, and not the attitude or course which, having such status, they may elect to take.
The cases cited on behalf of the appellee, some of which we will discuss, are not inconsistent with the views above expressed; but, on the contrary, sustain us in the application of the tests to be applied in determining the removability of a cause.
In Geer v. Alkali Works, 190 U. S. 428, 23 Sup. Ct. 807, 47 L. Ed. 1122, complainants, minority shareholders in one of two defendant corporations, filed a bill in the state court to cancel a conveyance which such defendant corporation had made to the other. Both corporations were of citizenship diverse from complainants, and removed the cause. But the directors of the conveying corporation were made codefend-ants and were sought to be charged with the loss and damage suffered by their principal by reason of their tortious conduct. Some of such directors were of the same citizenship with one or more of complainants. This, of course, was fatal to federal jurisdiction unless their presence in the controversy relating to annulling the conveyance between the corporations, could be dispensed with. It was held that such controversy was separable. Clearly, this was a cause of action whose determination could be accomplished and full relief therein— in that controversy — could be granted, without the presence, of the directors.
In Wallin v. Reagan (C. C.) 171 Fed. 758, an ejectment suit, the plaintiff joined a tenant at will as'codefendant with the principal defendant. The tenant was a citizen of the same state as plaintiff; hence, if an indispensably necessary party to the suit, it could not be removed. The tenant had appeared and disclaimed interest in the lands. The court sustained the removal, observing that the tenant was not “anything more than a stakeholder and without real interest in the controversy.” Now, irrespective of the question whether plaintiff in ejectment must join those who hold lesser estates under the principal defendant, the assumption that a tenant at will is a “stakeholder,” and for that reason alone not an indispensable party, is at variance with the principles of Wilson v. Oswego Township, and the other -cases referred to. The same criticism is applicable to Johnston Ry. Frog & Switch Co. v. Buda Foundry & Mfg. Co. (C. C.) 148 Fed. 883. In other words, the circumstance that a defendant is, or claims to be, a stakeholder, is not controlling.
In Fritzlen v. Boatman’s Bank, 212 U. S. 364, 29 Sup. Ct. 366, 53 L. Ed. 551, the question of jurisdiction was presented upon an appeal from the Supreme Court of Kansas. The case, in another aspect, was before the Circuit Court of Appeals (135 Fed. 650, 68 C. C. A. 288), where the identical question of jurisdiction was considered and determined. These were the facts: A second mortgagee brought suit to foreclose. He joined as codefendant with the mortgagor, a first mortgagee, averring priority of his own mortgage and attacked the nominally first mortgage as fraudulent and void. The right of the first mortgagee (who was of different citizenship) to remove the *116cause was sustained upon the ground that the issue of validity of his mortgage wás separable from the essential elements comprising the issue in foreclosure. The case is an apt illustration of the proper application of the tests upon removal of causes. It is pointed out that, when a complainant seeks to foreclose a mortgage, the elements embodied in his case are: his debt; the default of the mortgagor; the rank of complainant’s mortgage; and satisfaction, either through redemption or sale; that other mortgagees are made parties .solely to ascertain and adjudicate the question of priority and thereby to fix and limit the redemption right. Therefore those who have or are charged to have junior liens are indispensably necessary to enable accomplishment of this element of the foreclosure purpose. If nothing further is charged, the cause of action or controversy is single and contains nothing which is separable from or not germane to the fundamental purpose of foreclosure — the latter involves the very idea of determining the rank of other liens which are assumed to be valid. But, when the complainant mortgagee charges that, because of fraud or other circumstances, the nominally senior mortgage is not only junior, but is fraudulent and void, he has injected an element not embodied in the foreclosure purpose. He can and must by his foreclosure bill litigate the rank of his own mortgage; but he cannot, as indispensably incident to the issue of rank or priority, seek to nullify the mortgagor’s contracts with other defendants. He cannot, by injecting an issue of validity of a defendant’s mortgage, seek an adjudication that there is no redemption right because there is no mortgage. His foreclosure ' purpose is accomplished when the -rank of his mortgage relatively to other valid mortgages — acknowledged to he such — is determined. When therefore a defendant’s mortgage is charged to be void, when it is ’sought to nullify it as a lien created by the mortgagor, then such defendant is made the object of a charge, a party to an issue or controversy which is not germane to an issue of priority; and a controversy arises which is separable therefrom, wholly determinable and full relief grantable therein, without the necessary presence of the parties to such issue of rank or priority.
Recurring now to the present case: Has Moloney in his hill alleged anything more than the contract with Cressler and the manner or means whereby he seeks to establish performance? The analysis of the Boatman’s Case suggests, as an analogous situation, if the complainant second mortgagee therein, instead of alleging that the first mortgage is void, had averred that the defendant first mortgagee had taken his security with knowledge that the second mortgagee had already advanced money to the' mortgagor, on the faith of a promise that he should have a first mortgage; therefore the nominally first mortgage should be reduced to a position of juniority. Under such circumstances, no separable controversy would appear; but the allegations would bear merely upon the issue of priority which is indispensably involved in the foreclosure purpose. • So in the present case, the bill comprehends but a “single cause of action and a single ground of relief” (Wilson v. Oswego Township, supra), and, in its legal aspects and effect, the situation presented by the bill is no different than it *117would be if Moloney had alleged the contract, payment, or performance, and upon the trial had sought to establish such • allegations by proving the facts narrated in the bill. Every such fact, if established, also the result of any accounting, is relevant only to the fundamental issue of performance. It cannot be doubted that a suit for specific performance involves as necessary elements, though not as different or separable controversies, questions respecting the default of one party as an excuse for the other’s failure to perform as agreed; that it is likewise permissible therein to show the acts of the parties under the contract and connected with its subject-matter, as bearing upon the right of the one to have, or the other to withhold, performance. While therefore complainant in the present case, if he so elected, might have sued Cressler for damages arising through the latter’s breaches, and his misrepresentations respecting the subject-matter of the contract, also for the reasonable value of services rendered as stated, the inclusion of these matters in the present bill, for the-purpose of establishing one of the elements necessarily comprised within its issues, does not bring in a separable controversy.
It may be added that the allegations just referred to can be ignored, and complainant’s bill would still stand as one seeking plainly to enforce specific performance grounded (1) upon the contract, (2) the partial payment made, (3) the disputed balance, and (4) complainant’s willingness to pay whatever sum may be found due — his offer to do equity. The fact that he has not literally performed by paying the full money consideration stipulated in the contract does not make the bill frivolous, thus justifying the claim that Harris & Co. are fraudulently joined. In a suit for specific performance, an offer by complainant to justify his own nominal default and to show that it is not a real default, coupled with an offer to perform as may be adjudged, is consonant with equity. 4 Pomeroy, Eq. Jur. 1407. Therefore, irrespective of the question whether Moloney’s claims for recoupment are allowed or allowable, Harris & Co., as escrow or bailee, are given a status as indispensable parties in the suit for specific performance, to enable granting the complete relief sought by the bill; they are indispensable to the end that complainant may have the fruition of the decree prayed, if it is awarded. Crump v. Thurber, Wilson v. Oswego Township, and Construction Co. v. Cane, supra.
Some of the defendants who comprise the firm of Harris & Co. are citizens of Illinois, the state of complainant’s citizenship. The cause was therefore not removable by the defendant Cressler. .
The judgment is reversed, with directions to grant the motion to remand the cause to the state court.
On Cross-Appeal.
PER CURIAM. This-is a cross-appeal by Cressler from the'decree considered in No. 1,912, herewith decided. In view of the conclusions reached in that case, the decree is reversed at Cressler’s costs, and the cause is remanded to the District Court, with the direction to remand to the state court.