This is an original proceeding in this court. Upon a rule to show cause why he shouíd not be prohibited from issuing a writ commanding that the ballot boxes in a certain election contest be opened, the Hon. Jacob Klein, a judge of the circuit court of the city of St. Louis, has made the following return: “That such writ should notissue because it appears by the relator’s petition and by the copy of notice of contest and notice of application accompanying said petition, that under the statutes of the state of Missouri, reláting to election contests and to the opening of ballot boxes, by order of circuit courts, that the .respondent, as judge of the circuit court, city of St. Louis, before whom said election contest was and is pending, was and is duly authorized to issue a writ directed to the recorder of voters "of the city of St. Louis, instructing him to open the ballot boxes, as asked for in the application of the contestor named in said notice of contest.”
To this return relator demurs on the ground that it does not state facts, etc.
The truth of the return being admitted by the demurrer, the only issue presented for determination is the jurisdiction of respondent to' order the opening of the ballot boxes. The issue thus raised brings under *263review certain constitutional and statutory provisions pertaining to the subject of such jurisdiction.
After providing for the secrecy of the ballot, section three of article eight of the constitution declares: “That in all cases of contested elections the ballots cast may be counted, compared with the list of voters, and examined under such safeguards and regulations as may be prescribed by law.” Section nine of the same article commands that: “The general assembly shall,
by general law, designate the court or judge by whom the several classes of election contests shall be tried, and regulate the manner of trial and all matters incident thereto,”
In obedience to the requirements of the organic law, the legislature passed a statute which conferred jurisdiction on the circuit courts “in cases of contested elections for county offices.” 2 Revised Statutes 1879, sec. 5528; 1 Revised Statutes 1889, sec. 4706. By the act of 1883, laws of that year, page 91, now section 4721, Revised Statutes, 1889, authority was bestowed on “any court before which any contested election may be pending” to issue a writ to have the boxes opened. In State ex rel. v. Dillon, 87 Mo. 487, this court decided under the then existing laws that the circuit court of the city of St. Louis had no jurisdiction to try a^ contested election cause in regard to a municipal office of that city. In 1891, the general assembly enacted an amendment to section 4706 aforesaid, by inserting therein the words “and municipal,” so that that section now reads: “The several circuit courts shall have jurisdiction in cases of contested elections for county and municipal offices,” etc. (Laws 1891, p. 106).
The object of the amendatory act is quite plain, it. was evidently designed to supply a casus omissus, to confer jurisdiction on circuit courts where, under the former ruling of this court, none existed before, to-wit, *264in regard to “municipal” „ offices. The only question therefore is: Did the amendment have the desired and intended effect, or did it fail of its manifest purpose? The statutory provisions already quoted evidently relate to one subject, and have but one object in view. The title of the laws as found in the Revised Statutes of 1879 and of 1889, is “Elections,” and the act of 1883 already quoted is “An act to provide for counting, etc., ballots in cases of contested elections.” And the act of 1891, before mentioned, is entitled “An act to amend section 4706, etc., in relation to elections.” It is readily seen, therefore, from the titles of these acts, both original and amendatory, and the matters therein contained, that they are parts of one common system, and have in contemplation the effectuation of but one common object, to-wit: the conferring of jurisdiction on circuit courts in relation to certain offices and the regulation of the manner of the exercise of the jurisdiction thus conferred.
This being the case, the canon of construction is a familiar one; that: “It is to be inferred that a code of statutes relating to one subject, was governed by one spirit and policy, and was intended to be consistent and harmonious in its several parts and provisions. It is therefore an established rule of law,- that all acts in pari materia are to be taken together, as if they were one law; and they are directed to be compared jn the construction of statutes, because they are considered as framed upon one system, and having one object in view. If one statute prohibit the doing a thing, and another statute be afterward made, whereby a forfeiture is inflicted upon the person doing that thing, both are considered as one statute. Where an action founded upon one statute, is given by a subsequent statute in a new case, everything annexed to the action by the first statute is likewise given. Indeed, the latter act may be *265considered as incorporated with the former.” Potter’s Dwarris on Statutes and Constitutions, pages 189, 190,
Under the operation of this rule of inpcuri materia the amendment of 1891, became as indissolubly blended with the former acts as if it had been part and parcel ■of them; as much so as if it had been incorporated in the first instance in the original act which conferred jurisdiction on the circuit courts in relation to contested elections for “county” offices. This view is elsewhere ■expressed in a somewhat recent work of merit: “No ■doubt, a statute which is amended is thereafter, and •as to all acts subsequently done, to be construed as if the amendments had always been there, and the .amendment itself so thoroughly becomes a part of the original statute, that it must be construed in viewsof the original statute, as it stands after the amendments are introduced.” (Endlich Interpretation Statutes, sec. 294.)
An author of recognized standing, in a late work touching the subject in hand, remarks: “Where ■enactments separately made are read in pari materia, they are treated as having formed in the minds of the ■enacting body parts of a connected whole, though considered by such body at different dates, and under ■distinct and varied aspects of the common subject. Such a principle is in harmony with the actual practice of legislative bodies, and is essential to give unity to the laws, and connect them in a symmetrical system. Such statutes are taken together and construed as one system and the object is to carry into effect the intention. It is to be inferred that a code of statutes relating to one subject was governed by one spirit and policy, and was intended to be consistent and harmonious in its several parts and' provisions. Eor the purpose of learning the intention, all statutes relating to -the same subject are to be compared, and so far as *266still in force brought into harmony, if possible, by-interpretation, though . they may not refer to each other, even after some, of them have expired or been repealed. An amendatory act and the act amended are to be construed as one. statute, and no portion of' either is to be held inoperative if it can be sustained without wresting words from their appropriate meaning.” Sutherland Statutory Construction, sec. 288.
As showing what acts are to be regarded as. forming one system and therefore to be read together, the same author says: ‘ ‘A statute must be construed with reference to the whole system of which it forms a, part. And statutes upon cognate subjects may be^ referred to, though not strictly in pari materia. There being a general statute regulating the execution of' wills which did not require subscribing witnesses, a. new statute was passed providing for the testamentary disposition of the property of married women; it. required that such a will should be executed in the presence of two witnesses. The two acts were construed together. A married woman’s will had to be executed according to the general law except in the particular regulated by the later act in respect to-witnesses. * * A statute authorizing the revival of actions by or against the representative or successor-in interest of the party deceased is in pari materia with other statutes providing for the appointment of.' executors and administrators, and also those pointing-out how foreign representatives may acquire the right-to prosecute actions. A statute relating to homestead, and exemptions for a famibf of minor children was held in pari materia with laws allowing dower to the widow and minor children. A statute in relation to attachments against steamboats and other water craft is in pari materia with the general attachment law, and they should be construed together.” Ibid. sec. 284.
*267The industry of counsel for respondent has cited many cases announcing the same doctrine; it is needless to cite them in support of a principle of such universal recognition, and quotations would not have been made thus at large from the text-writers, but for the fact that upon the principle announced, this case must turn.
Under the authorities, the effect of the act of . 1891, when it gave jurisdiction to circuit courts in respect to contested elections for “municipal” offices, was immediately to confer on such courts the same machinery for making that jurisdiction effectual as had already been bestowed on such courts in other election contests, by the act of 1883, to-wit, the power to open the ballot boxes. Without this power ■ the grant of jurisdiction as to municipal contested elections would be a vain and useless thing; the grant of a barren and fruitless jurisdiction; something which it must be presumed the legislature did not intend to confer. Smith’s Commentaries, sec. 527.
The rule which is applied to several acts in pari materia, and which requires them to be considered together as forming one legal %vhole is after all, but a rule ascertaining and carrying into effect the intention of the legislature. 1 Kent’s Commentaries [13 Ed.], 463. It is based upon the same principle, that whenever a power is given by a statute, everything necessary to the making of it effectual or requisite to attain the end is implied. Quando lex aliquid concedit concederé videtur et id, per quod devenittir ad illud. Ibid. 464.
Upon the foregoing considerations, we hold that the various statutory provisions above quoted must be regarded as forming one harmonious whole; one act to all intents and purposes, which clothes the circuit court, over which respondent presides,, not only with *268jurisdiction, to hear and determine contested elections for “municipal offices,” but clothes it also with all necessary power to make that jurisdiction effectual by. ordering the opening of the ballot boxes.
It has, however, been urged that in any event jurisdiction to open the ballot boxes cannot be exercised in this particular instance for two reasons: First, because under the statutory provisions no order to ■open the ballot boxes can be made prior to' the June term, at which the contest is to occur, or “until the case is at issue; second, because the notice of contest is insufficient by being too general and indefinite, etc.
Section 4721, supra, does not require that the case shall be “at issue” when the order to open the boxes is made; the only requirement is that the contested election shall be “pending” before the court which makes the order, and we have heretofore ruled that such contest is pending from the time that notice thereof is served upon the contestee. State ex rel. v. Smith, 104 Mo. 661.
As to the insufficiency of the notice of contest, it is enough to say that the writ of prohibition goes only to restrain the assumed exercise of jurisdiction where none exists, and not to its erroneous or irregular exercise. Wood on Mandamus and Prohibition, 147, 148, ■etseq.; State ex rel. v. Court of Appeals, 99 Mo. 216; State ex rel. v. Burckhartt, 87 Mo. 533. It cannot issue where other adequate remedies exist, nor be made to perform or usurp the functions of an appeal, etc. 19 American and English Encyclopedia of Law, 265, ■et seq., tit: Prohibition. Besides, the insufficiency of the notice has not been put in issue by the pleadings, and we shall not assume in advance that the respondent will permit an insufficient notice of contest to receive *269his judicial sanction, and should he do so the remedy of relator is ample in other directions.
The premises considered, we deny the writ.
All. concur.