delivered the opinion of the court:
Dale Baker, defendant, pleaded guilty but mentally ill to charges of home invasion, indecent liberties with a child and attempted deviate sexual assault. There were no negotiations between the parties as to the sentences defendant should receive. Defendant was sentenced to six years’ imprisonment for home invasion and four years’ imprisonment for indecent liberties with a child and attempted deviate sexual assault; the latter two sentences to be served concurrently, but consecutive to the sentence for home invasion. Defendant subsequently filed a motion to withdraw his pleas, and the motion was denied. On appeal, defendant contends that his pleas of guilty but mentally ill must be vacated in light of the court’s failure to advise him of the possibility of consecutive sentences, and that the court erred in imposing consecutive sentences.
Supreme Court Rule 402(a)(2) (87 Ill. 2d R. 402(a)(2)) provides:
“The court shall not accept a plea of guilty without first, by addressing the defendant personally in open court, informing him of and determining that he understands the following: * * *
(2) the minimum and maximum sentence prescribed by law, including, when applicable, the penalty to which the defendant may be subjected because of prior convictions or consecutive sentences.”
In this case, while defendant asserts that the failure to advise him that he could receive consecutive sentences requires that his pleas be vacated, examination of the record reveals the following exchange between the court and defendant at the guilty plea hearing:
“Q. There are also statutory factors which the court is required to consider and it is a possibility, sir, a possibility that you could be sentenced to a term of or a term in the penitentiary for as long as thirty years. Do you understand that?
A. Yes.”
Our supreme court has consistently held that Rule 402 requires only substantial, not literal, compliance with its provisions, and that every deviation from the stated requirements of the rule does not necessitate reversal. (People v. McCoy (1979),
Defendant next contends that the court erred in ordering that defendant’s concurrent four-year terms for indecent liberties and attempted deviate sexual assault be served consecutive to his six-year term for home invasion. We agree. Section 5 — 8—4(a) of the Unified Code of Corrections (Ill. Rev. Stat. 1983, ch. 38, par. 1005 — 8—4(a)) provides that consecutive sentences shall not be imposed “for offenses which were committed as part of a single course of conduct during which there was no substantial change in the nature of the criminal objective.” Under this provision, the imposition of consecutive sentences depends upon both the existence of separate and distinct acts and separate motivation behind those acts. (People v. Perruquet (1983),
For the foregoing reasons, the sentences imposed on defendant are modified to run concurrently, and the remainder of the judgment is affirmed.
Affirmed as modified.
JONES, P.J., and WELCH, J., concur.
