
669 N.E.2d 707 (1996)
282 Ill. App.3d 990
218 Ill.Dec. 564
In the Interest of C.M., a minor (Dana L. Corman, Guardian Administrator of the Department of Children and Family Services, Petitioner-Appellant).
In the Interest of J.E.B., a minor (Dana L. Corman, Guardian Administrator of the Department of Children and Family Services, Petitioner-Appellant).
Nos. 3-95-0651, 3-95-0694.
Appellate Court of Illinois, Third District.
August 14, 1996.
*708 Brian F. Barov (argued), Assistant Attorney General, Chicago, James Ryan, Attorney General, Chicago, Barbara A. Preiner, Solicitor General, Chicago, for Dana Corman, DCFS Guardian Administrator, C.M.
*709 John X. Breslin, Deputy Director State's Attorneys Appellate Prosecutor, Ottawa, Michael Kick, State's Attorney, Kankakee, James Glasgow, Will County State's Attorney, Joliet, Judith Z. Kelly, States' Attorneys Appellate Prosecutor (argued), Ottawa, for the People.
Robert Agostinelli, Deputy Defender, Office of the State Appellate Defender, Ottawa, for J.E.B.
Dennis J. Boran, Peterson, Deck, Ruch & Boran, Kankakee, Guardian Ad Litem.
Justice LYTTON delivered the opinion of the court:
Public Act 89-21 amended the Juvenile Court Act, limiting the ability of courts to name the Department of Children and Family Services (DCFS) custodian for certain minors. Finding that these changes did not apply, the trial courts in these consolidated cases awarded DCFS temporary custody of two minors who had been adjudicated abused, neglected or dependent. We reverse and remand for further proceedings.

I. Facts


A. In the Interest of CM.

C.M. was born on March 14, 1979. On January 12, 1993, his father filed a petition to have him declared a neglected minor after he sexually abused his sister and step-sister while residing with his mother. The petition was later dismissed. C.M. was subsequently charged in a juvenile petition with criminal sexual abuse and aggravated criminal sexual abuse. On July 19, 1993, the trial court found C.M. to be delinquent, placed him on two years probation and ordered him to live with his father.
A juvenile petition for theft was filed against C.M., and a month later, he was placed in the temporary custody of a juvenile detention facility. At the adjudicatory hearing, the court found C.M. delinquent on the theft charge. After the dispositional hearing, he was transferred to the Department of Corrections (DOC). When he was released from the DOC on June 29, 1995, his parents refused custody, and C.M. voluntarily went to Aunt Martha's Youth Service Center, a social service agency.
The Kankakee County State's Attorney filed a temporary custody petition on the grounds that C.M. was an abused, neglected or dependent minor pursuant to sections 2-3 and 2-4 of the Juvenile Court Act (Act) (705 ILCS 405/2-3, 2-4 (West 1994)). Evidence at the temporary custody hearing showed that C.M.'s parents refused custody due to his criminal behavior. DCFS argued that it was barred from taking custody of C.M. pursuant to Public Act 89-21.
The trial court appointed DCFS temporary guardian, ruling that Public Act 89-21 barred commitment of juveniles to DCFS only in pending delinquency petitions, not in neglect petitions. DCFS filed a petition for leave to appeal pursuant to Supreme Court Rule 306(a)(5) (155 Ill.2d R. 306(a)(5)). In November 1995, this court granted DCFS's petition for leave to appeal.

B. In the Interest of J.E.B.

J.E.B. was born on February 4, 1982, and lived with his mother and two brothers in Utah, where he was physically and sexually abused by his older brother. In February 1995, J.E.B. went to live in Council Bluffs, Iowa, with his father, his father's girlfriend and her two sons, ages six and eight. They subsequently moved to Joliet, Illinois, where on May 25, 1995, J.E.B. was charged with two counts of criminal sexual assault against the girlfriend's sons. J.E.B. was placed in a juvenile detention facility and was adjudicated delinquent on two counts of aggravated criminal sexual abuse on July 12, 1995.
J.E.B.'s father, his girlfriend and her two sons moved back to Iowa on July 25, 1995; the father agreed to take custody of J.E.B. after the boy received residential treatment. On August 2, 1995, the Will County State's Attorney filed a temporary custody petition on the grounds that J.E.B. was a neglected or dependent minor pursuant to sections 2-3 and 2-4 of the Act. At a custody hearing held on August 25, 1995, the trial court vacated the prior delinquency orders, found J.E.B. neglected or dependent and awarded temporary custody to DCFS.
On August 28, 1995, the trial court adjudicated J.E.B. delinquent. On September 28, *710 1995, the court sentenced him to five years probation, affirmed its prior custody award and found Public Act 89-21 to be unconstitutional.
DCFS filed a petition for leave to appeal from the trial court's August 25 order and a petition for leave to consolidate the appeals involving C.M. and J.E.B. On November 9, 1995, this court granted the petition for leave to appeal; the two appeals were consolidated on November 29, 1995.

II. Public Act 89-21

Public Act 89-21 amends sections 2-10, 2-27, 5-10 and 5-23 of the Act (705 ILCS 405/2-10, 2-27, 5-10, 5-23 (West Supp.1995)); article II relates to the care and custody of abused, neglected or dependent minors, while article V concerns minors who have been adjudicated delinquent. The changes in article II are primarily at issue in this consolidated appeal. As amended, article II states that,
"a minor charged with a criminal offense under the Criminal Code of 1961 or adjudicated delinquent shall not be placed in the custody of or committed to [DCFS] by any court, except a minor less than 13 years of age and committed to [DCFS] under Section 5-23 of this Act." 705 ILCS 405/2-10(2), 2-27(1)(d).
Similar changes have been made to section 505/5(l) of the Child and Family Services Act (Child Services Act), which outlines DCFS's duty to provide direct child welfare services (20 ILCS 505/5(l) (West Supp.1995)). Three issues have been raised on appeal concerning the validity of Public Act 89-21.

A. Circuit Court's Statutory Authority

We first address the contention that Public Act 89-21 is invalid because it restricts trial courts' authority to name custodians in accordance with the best interests of the affected minors. See 705 ILCS 405/1-2(1) (West 1994).
The Act delineates the authority of the circuit courts, and the "best interests of the child" standard must operate within these limits. See In re M.M., 156 Ill.2d 53, 66-67, 189 Ill.Dec. 1, 9, 619 N.E.2d 702, 710 (1993). Having initially granted courts the authority to make custody determinations under the Act, the legislature may revise this power as it sees fit. See Board of Education of Warren Township High School District 121 v. Warren Township High School Federation of Teachers, Local 504, IFT/AFL-CIO, 128 Ill.2d 155, 165, 131 Ill.Dec. 149, 154, 538 N.E.2d 524, 529 (1989).
In Public Act 89-21, the legislature chose to alter the circuit courts' ability to place certain minors with DCFS. The amendment did not change the applicability of the "best interests" standard; it simply modified the contours of the courts' authority in determining what the best interests of the child are. In its discretion, the legislature can redefine the scope of circuit courts' alternatives under the Act so long as it does not act unconstitutionally. See Fumarolo v. Chicago Board of Education, 142 Ill.2d 54, 62-63, 153 Ill.Dec. 177, 180, 566 N.E.2d 1283, 1286 (1990).

B. Equal Protection

We next consider whether Public Act 89-21 is an unconstitutional violation of the affected minors' equal protection rights. Under the equal protection clause, the State may not treat similarly situated persons differently for reasons that are unrelated to the legislative purpose of the statute. People v. R.L., 158 Ill.2d 432, 437, 199 Ill.Dec. 680, 683, 634 N.E.2d 733, 736 (1994).
The second district recently analyzed a similar argument in In re C.T., 281 Ill. App.3d 189, 217 Ill.Dec. 219, 223, 666 N.E.2d 888, 892 (2d Dist.1996). The court first considered whether the amendments affected a fundamental right or a suspect class. Acknowledging parents' fundamental interest in the care and custody of their child, the court rejected the argument that Public Act 89-21 affects this interest. "Any fundamental rights affected, therefore, would be the heretofore-unrecognized right of a minor to be placed with DCFS." In re C.T., 281 Ill. App.3d 189, 217 Ill.Dec. at 223, 666 N.E.2d at 892. In addition, in People v. M.A., 124 Ill.2d 135, 140, 124 Ill.Dec. 511, 513, 529 N.E.2d 492, 494 (1988), our supreme court refused to consider juveniles a suspect class. *711 Thus, no fundamental right is implicated in this case.
Because the amendments in Public Act 89-21 did not involve a fundamental right or a suspect class, the court in C.T. applied a rational basis test. Rational basis scrutiny is generally deferential, requiring only a determination of whether the statutory means are rationally related to the stated legislative goal. Legislation will be upheld if its classification scheme can be justified under any conceivable set of facts. C.T., 281 Ill.App.3d 189, 217 Ill.Dec. at 220-22, 666 N.E.2d at 889-92.
After reviewing the objective of the Act, the court in C.T. found that the amendments do not frustrate the Act's protective purpose. Courts may still place affected minors in the custody of suitable relatives or unrelated persons, under the guardianship of a probation officer or in the care of an agency that is not governed by the DOC or DCFS. C.T., 281 Ill.App.3d 189, 217 Ill.Dec. at 223-24, 666 N.E.2d at 892-93. The court noted that the amendments may in fact advance the purpose of the Act by focusing DCFS's limited resources on its core population of abused, neglected or dependent minors who have not been adjudicated delinquent. The changes also may have been intended to protect younger or more vulnerable children from the potential dangers presented by delinquent teenagers housed in the same facilities. Both of these considerations represent legitimate state concerns.
Because the classification scheme was based on reasonable state goals and was rationally related to the purpose of the Act, the court in C.T. refused to override the legislature's discretion by finding the amendments unconstitutional. C.T., 281 Ill.App.3d 189, 217 Ill.Dec. at 224, 666 N.E.2d at 893. Applying the same reasoning to the instant case, we reject the equal protection challenge to Public Act 89-21.

C. Statutory Construction

We next address the argument that the legislature did not intend Public Act 89-21 to alter DCFS's mandate under section 505/5(k) of the Child Services Act to "accept for care and training any child who has been adjudicated neglected or abused, or dependent committed to it pursuant to the Juvenile Court Act * * *." 20 ILCS 505/5(k) (West Supp.1995). It is asserted that the amendments to article II apply only to proceedings in which a minor is adjudicated delinquent or is charged with a criminal offense, but not to neglect proceedings, because the amendments specifically refer to section 5-23 of the Act, which concerns the custody of delinquent minors. See 705 ILCS 405/5-23(3). We are not persuaded by this argument.
Our primary goal in statutory construction is to give effect to the intent of the legislature. In determining legislative intent, we must construe the language of a statute according to its plain and ordinary meaning. Eagan v. Chicago Transit Authority, 158 Ill.2d 527, 531-32, 199 Ill.Dec. 739, 742, 634 N.E.2d 1093, 1096 (1994).
In the instant case, Public Act 89-21 added similar amendments to article II and article V of the Act. The legislature was not obliged to alter both articles, yet chose to do so. To judicially excise this language from article II would effectively nullify the discretionary judgment of the legislature. Such a result cannot be justified where a clear legislative intent is unambiguously expressed by the plain language of the amendments. See C.T., 281 Ill.App.3d 189, 217 Ill.Dec. at 222, 666 N.E.2d at 891; Danner v. Norfolk & Western Ry. Co., 271 Ill.App.3d 598, 603, 207 Ill.Dec. 903, 906, 648 N.E.2d 603, 606 (1995).
For the same reason, we reject DCFS' contention that Public Act 89-21 allows juvenile courts to place affected minors with the department if an "independent basis" exists for the custody petition, i.e., one unrelated to the minor's delinquency or criminal charges. See C.T., 281 Ill.App.3d 189, 217 Ill.Dec. at 222, 666 N.E.2d at 891. The unambiguous language of amended sections 2-10 and 2-27 does not allow DCFS to take custody of a delinquent minor over the age of 12 if an "independent basis" exists for a subsequent finding of neglect, abuse or dependency.
Trial courts may not exceed the authority granted to them by the Act "`no *712 matter how desirable or beneficial'" the result. In re P.F., 265 Ill.App.3d 1092, 1104, 202 Ill.Dec. 848, 857, 638 N.E.2d 716, 725 (1994), quoting In re Peak, 59 Ill.App.3d 548, 551-52, 16 Ill.Dec. 755, 758, 375 N.E.2d 862, 865 (1978). Similarly, DCFS' custodial power is limited by the Child Services Act. 20 ILCS 505/1 et seq. (West 1994); see Granite City Division of National Steel Co. v. Illinois Pollution Control Board, 155 Ill.2d 149, 171, 184 Ill.Dec. 402, 412, 613 N.E.2d 719, 729 (1993) (enabling statute limits power of an administrative agency). The trial court orders awarding temporary custody of C.M. and J.E.B. to DCFS improperly exceeded these statutory limitations.

III. Conclusion

The judgments of the circuit courts of Kankakee County and Will County are reversed and remanded for further proceedings consistent with this opinion.
Reversed and remanded.
HOLDRIDGE, P.J., and McCUSKEY, J., concur.
