This is а child custody dispute between the mother of Kurt Gilbert Helm and his paternal grandparents. Trial court denied the mother’s applicаtion to modify the custody provisions of a dissolution decree, hold *726 ing that it lacked subject matter jurisdiction.
Peggy Jean Helm, applicant and appellant, and Leonard Gil Helm were married on July 19, 1968. Kurt and a second child, Cheriece Marie Helm, were born to this marriage. A dissolution was sought and obtained on January 10, 1972. The decree gave custody of Cheriece to her mother, Peggy, and placed Kurt in the custody of his father’s parents, Gilbert and Dortha Helm. On April 21, 1973, Peggy and Leonard remarried. Kurt resided with his parents for a time after the remarriage, but was then returned to his grandpаrents. The second marriage was dissolved on February 19, 1975, by a decree which again granted custody of Cheriece to her mother. This sеcond decree, however, made no provision for custody of Kurt, who had not even been mentioned in the pleadings.
Subsequent tо the second dissolution, Leonard applied for modification of the first decree, asking that custody of Cheriece be plаced with him. The district court ordered that Leonard’s application be filed in the second dissolution action, and that all further prоceedings be in that case.
Finally, on April 11,1977, Peggy filed the application involved here. Her application demanded that triаl court modify the second dissolution decree by providing that custody of Kurt be placed with her. Original notice was served on Leonard, and on thе custodial grandparents. Trial court denied the application. It acknowledged the rule that the remarriage of the pаrties to a dissolution renders the dissolution a nullity, but also recognized the exception to that general rule that where the dissolution decree placed custody in a third party a subsequent remarriage will not affect the third party’s right to custody.
No Iowa case hаs dealt directly with this point. The general rule that remarriage of the parties renders their dissolution a nullity finds widespread support in othеr states, as illustrated by the cases gathered in
Davis v. Davis,
Appellant misconstrues the exact nature of the jurisdictional defect which trial court perсeived in this case. She appears to believe that trial court denied having jurisdiction over the status to be adjudicated: custody of Kurt. She therefore cites
Call v. Call,
We have concluded that we ought to recognize the rule which trial court applied tо this case. The purpose and reasoning supporting the general rule regarding nullification of dissolutions by subsequent remarriages have been discussed adequately in
Davis,
In addition, we have observed the wisdom of settling custody permanently, to give the child some measure of stability. This permanency and stability will be enhanced by any rule which gives weight to prior dispositions of custody by decree. The rule that custody in third parties is not affected by subsequent remarriage is such a rule. Allowing third-party custodians to participate in modification proceedings, as is nоw required by Iowa Code Ann. § 598A.4 (Supp.1978 West), is a sound method of assuring that this interest is represented. We therefore recognize that remarriаge of the parties to a dissolution nullifies that dissolution except insofar as custody of a child is awarded to third parties.
The district сourt’s earlier refusal to consider the application to modify custody of Cheriece filed in the first action is of no relevance here. That situation was different because Cheriece had remained in the custody of one of her parents, while Kurt had not. Therefore, the first decree as it affected Cheriece was nullified by the remarriage. Because Kurt was in his grandparents’ custody, the decree, as it dealt with his custody, remained unaffected.
Recognition that Peggy’s application to modify should be brought in the first dissolution does not necessarily imply that trial court was without subject matter jurisdiction, however. Neither
Heilman
nor
Miller
go so far. Jurisdiction of the subject mаtter is the power to hear and decide cases of the general class to which the proceeding belongs. It can be nеither conferred on a court nor denied to a court by acts of the parties or the procedures they employ.
State ex rel. Iowa State Hwy. Comm’n v. Read,
This matter may be resolved on the merits by filing an application for modification with the Black Hawk District Court in the first dissolution action. The new proceeding should conform to the applicable requirements of the Uniform Child Custody Jurisdiction Act, Iowa Code Ann. ch. 598A (Supp.1978 West), which took effect on July 1, 1977.
AFFIRMED.
