delivered the opinion of the court;
The above appeals, each by the State from an order of the trial court, were consolidated by this Court for disposition. All defendants were represented by counsel and each was separately charged with driving a motor vehicle while under the influence of intoxicating liquor. (Ill. Rev. State. 1969, ch. 95½, par. 11 — 501.) In each, the trial court, on its own *198motion, and over objection by the State, amended the face of the complaint to charge the offense of reckless driving (Ill. Rev. Stat. 1969, ch. 95½, par. 11 — 503) and, without hearing evidence, accepted a plea of guilty to the reduced charge, entered a fine of $100 and assessed costs in the sum of $10.
The cases differ only in the following respects: Rotramel was previously tried under par. 11 — 501, resulting in a “hung jury”; Prello had also been charged with improper lane usage which was dismissed by the court on its own motion, and Campbell was ordered, in addition to fine and costs, to deposit her drivers license with the court for six months (the period was later amended to one month).
The threshold question raised by the defendants is whether the State has the right to appeal. Supreme Court Rule 604 provides (in part pertinent here) that the State may appeal only from an order or judgment, “the substantive effect of which results in dismissing a charge for any of the grounds enumerated in section 114 — 1 of the Code of Criminal Procedure * * (Ill. Rev. Stat. 1969, ch. 38, par. 114 — 1). The State argues that the court, by reducing the charge, in effect dismissed the original charge brought. In People v. Love (1968), 39 Ill.2d 436, 438-440, it was held that the intent of section 114 — 1 was not to reduce the State’s Attorney’s right of appeal to only the ten grounds set forth in the statute, but to include within that right those instances whereby the substantive effect of the judgment would be the dismissal of the indictment, information or complaint. See also, People v. Petropoulos (1966), 34 Ill.2d 179, 181, and People v. Finkelstein (1939), 372 Ill. 186, 192.
We agree with the State that the substantial effect of amending the complaint and accepting a plea on a lesser charge substituted by the judge amounted to a dismissal of the complaint for driving under the influence of intoxicating liquor. We conclude that the State could properly appeal.
It is conceded that the State could have re-filed the original charge or petitioned for a writ of mandamus to seek to expunge the court’s order. Re-filing would be a burdensome procedure under the circumstances and amount to a collateral attack upon the court’s order; while mandamus, though an appropriate action, is an extraordinary remedy which the State was not required to pursue when the relief it seeks may be obtained upon direct appeal.
The court was clearly without authority to proceed as it did. By statute the State’s Attorney is charged with the commencement and prosecution of criminal cases within the county, (Ill. Rev. Stat. 1969, ch. 14, par. 5.) In the exercise of his public duty, he is granted certain discretionary powers, one of which is to determine the offense which can *199and should properly be charged. Article III of the Illinois constitution divides the powers of government among the legislative, executive and judicial departments and provides that none of these shall exercise powers belonging to the others. The State’s Attorney’s office is a part of the executive branch. It is clear that the judicial department may not take as its own discretionary powers vested in an executive officer. People v. Rhodes (1967), 38 Ill.2d 389, 396; People v. Graber (1946), 394 Ill. 362, 370-371; People v. Baron (1970), 130 Ill.App.2d 588, 264 N.E.2d 423, 425-426.
We have been furnished with no authority under which the court may dismiss, nolle prosse, or amend a charge on its own motion, for no defect in pleading and with no evidence taken. The extent of the court’s authority relative to the charge to be brought is to review the attempted exercise of discretion when the State’s Attorney is the one seeking to nolle prosse. People v. Newcomer (1918), 284 Ill. 315, 325; People v. Sears (1971), 49 Ill.2d 14, 29; People v. Daniels (1956), 8 Ill.2d 43, 52.
The trial court’s order dated February 25th, 1971 amending the complaints is reversed. The judgments entered on the pleas of the defendants to the amended complaints are vacated. The cause is remanded to the trial court for further proceedings consistent with this opinion.
Reversed and remanded with directions.
ABRAHAMSON, J., concurs.