Zum Industries, Inc.,
I.
The controversy arises out of the construction of Garland, Texas’s Duck Creek Sewage Treatment Plant. Zum was the subcontractor who built the carbon absorption system, one component of the project. Acton Construction Company was one of the two general contractors. URS Company was the design engineer for the whole project.
Shortly after the new plant started up, the underdrains on the carbon absorption unit ruptured. Zum then attempted to repair and modify the underdrains. After considerable work, Zurn abandoned the effort. Eventually, the unit was repaired and included in a system that was different than the originally designed plant.
The court action began in 1982 when Garland, a Texas citizen, filed suit against URS Co., also a Texas citizen, in state court. That suit alleged that URS’s novel physical/chemical process design could have never produced the required effluent quality. Garland alleged damages of over $20,000,000.
Zum, a Pennsylvania citizen, then brought this suit against Garland, URS, and Acton, a Minnesota citizen. Zum sought approximately $900,000 for the extra work in the attempted repair of the underdrain. Zum alleged that URS’s de
Garland then added Zum, Acton and others to the state court claim of process design failure. Garland also cross-claimed and counterclaimed in Zum’s federal suit on the same process design allegation. Additionally, Garland cross-claimed and counterclaimed seeking some $5,000,000 on the theory that the underdrain was negligently designed or built. Various other cross-claims and counterclaims were filed and additional parties added. All parties then voluntarily agreed to a non-suit in state court and to pursue their differences in federal court.
The district court sorted through all the various claims and stated that there were two “primary” claims: (1) the process design claim, or whether the design could have ever worked, and (2) the underdrain claim, or whether the underdrain was properly constructed. The district court decided, and all parties agree, that Garland was the plaintiff on the process design claim. The court also decided that Garland was the “real plaintiff in interest” on the under-drain claim. Using City of Indianapolis v. Chase Nat’l Bank,
II.
A.
As a general rule, diversity of citizenship is determined at the commencement of a lawsuit. Carlton v. BAWW, Inc.,
One exception to the general rule is the realignment of parties. See City of Indianapolis,
? subject matter jurisdiction is proper, the court may have ancillary jurisdiction over additional claims or parties that it may not have had otherwise. Whether the court has ancillary jurisdiction over the claim or party depends on the type of claim or party. If the claim is a compulsory counterclaim, Fed.R.Civ.P. 13(a), a cross-claim, Fed.R.Civ.P. 13(g), or if the party is added pursuant to a counterclaim or cross-claim, Fed.R.Civ.P. 13(h), or im-pleaded, Fed.R.Civ.P. 14, the court has an-
B.
The district court realigned the parties according to what it viewed as the two “primary” claims. The court took all of the various claims including the counterclaims and cross-claims and determined which two were the “primary” claims. Joining of all the claims and deciding which are the “primary” claims is not warranted by City of Indianapolis. The objective of City of Indianapolis realignment is only to insure that there is a bona fide dispute between citizens of different states.
The principal claim here is Zurn’s claim for almost $900,000 for extra work. That claim continues to exist. It is a bona fide claim, as all parties admit, not just asserted to create federal jurisdiction. On that claim, none of the defendants should be realigned under City of Indianapolis. Zum has a legitimate dispute with URS, Garland and Acton. The fact that Zum is on the same side as Acton and URS on Garland’s cross-claims and counterclaims is of no consequence to the jurisdiction over the original claim.
Having determined that realignment was not proper, we determine that the addition of the other claims and parties
The district court tried to sort out the various disputes and come up with a reasonable way to try this complex case. However, that sorting process should not include a realignment for diversity purposes. Engineering Science, the appellee, suggests that Garland, the main protagonist in the case, should be realigned as a plaintiff. They argue that Garland is the “true” plaintiff. That argument ignores the fact that Zum, as a Pennsylvania citizen, had a right to sue the various defendants, all non-Pennsylvania citizens, in federal court. The fact that the various counterclaims and cross-claims are for large dollar amounts does not alter that fact. Nor is Zum’s right affected by the fact that the case could not have been removed to federal court if Garland would have first sued the other parties. As we explained, the primary purpose of the suit, for City of Indianapolis purposes, was Zum’s $900,-000 claim for extra work. That primary purpose has not changed — it is still a bona fide dispute — and no party can be realigned with Zum on that claim. Therefore, diversity jurisdiction existed at the inception of the lawsuit and continues to exist. The various cross-claims and counterclaims, even in the absence of an independent ground for federal jurisdiction, are properly before the federal court pursuant to its ancillary jurisdiction.
REVERSED and REMANDED.
Notes
. Zurn is joined by a number of defendants in appealing the district court’s decision. Engineering Science, Inc., a third party defendant, is the only party on appeal who argues in support of the decision.
. But if an indispensable party cannot be properly added, the whole lawsuit may be subject to dismissal. See Fed.R.Civ.P. 19(b).
. Since there would be ancillary jurisdiction in the absence of independent federal subject matter jurisdiction, we need not examine whether diversity exists on the cross-claims and counterclaims.
We note that, technically. Garland’s counterclaim of design defect might not fall into the provisions of Rule 13(a) since "the claim was the subject of another pending action.” However, since the claim arose out of the same transaction or occurrence, ancillary jurisdiction over it was proper. H.L. Peterson Co.,
. We have only examined the counterclaims and cross-claims of Garland since they are the dominant claims. We do not mean to imply that the cross-claims and counterclaims of the other parties are not covered by the court’s ancillary jurisdiction. On the contrary, those claims, too, appear to arise out of the same transaction or occurrence and ancillary jurisdiction over those claims would be proper. Of course, if the court should discover on remand that a cross-claim or counterclaim did not arise from the construction dispute, and there is no independent basis for jurisdiction, it is free to dismiss that claim.
. Zum also appeals the grant of summary judgment in favor of ICI Americas. At the time of the district court’s dismissal, a motion was pending to reconsider that summary judgment. Since the district court never addressed the mo
