delivered the opinion of the court:
Defendant, William Jon Wiseman, Jr., appeals from his conviction of aggravated battery after a bench trial in the circuit court of Randolph County. Defendant was sentenced to four years’ imprisonment. We affirm.
In July of 1987, defendant was housed in the Perry County jail awaiting disposition of Perry County charges and a petition to revoke his probation. On the 30th of that month, defendant was transferred to the Randolph County jail for holding while the Perry County jail was being painted. During his stay in the Randolph County jail, defendant struck, kicked and bit two Randolph County jail personnel. Defendant was- charged on August 9, 1987, with aggravated battery in connection with this incident. On August 11, bond was set, and on August 27, probable cause was found after a preliminary hearing. Defendant posted no bond. On September 3, 1987, defendant was returned to the Perry County jail. The Perry County charges against defendant subsequently were dismissed on the 16th, but the petition to revoke probation was heard and granted. On November 24, 1987, defendant was sentenced to four years’ imprisonment for violating probation and transferred to the Department of Corrections the following day. On July 29, 1988, defendant was brought to court in Randolph County pursuant to a writ of habeas corpus ad prosequendum, at which time defendant was granted a continuance in connection with the charges then pending in Randolph County. Defense counsel subsequently filed a motion to dismiss these charges based on a violation of defendant’s speedy trial rights pursuant to section 103— 5(a) of the Code of Criminal Procedure of 1963 (Ill. Rev. Stat. 1987, ch. 38, par. 103—5(a)). The trial court denied defendant’s motion, ruling that because section 3 — 8—10 of the Unified Code of Corrections (Ill. Rev. Stat. 1987, ch. 38, par. 1003 — 8—10), entitled “Intrastate Detainers” (hereinafter Intrastate Detainers Act), applied, Randolph County never had constructive custody of defendant. As defendant failed to invoke the provisions of the Intrastate Detainers Act, he was not entitled to dismissal of the Randolph County charges. Defendant subsequently was convicted of one count of aggravated battery and sentenced to four years’ imprisonment.
Defendant first argues on appeal the trial court erred in denying his speedy trial motion. Defendant believes because he was served with a complaint and was not free to leave until he posted bail, he was “in custody” on the Randolph County charges before the proceedings in Perry County terminated. Therefore, once the Perry County proceedings terminated on November 24, 1987, the speedy trial period started running. As no further action was taken on the Randolph County charges until some 191 days later, defendant asserts his conviction for aggravated battery should be vacated. We disagree.
Section 103 — 5(a) of the Code of Criminal Procedure of 1963 (Ill. Rev. Stat. 1987, ch. 38, par. 103—5(a)), entitled “Speedy Trial” (hereinafter Speedy Trial Act), provides that every person in custody in this State shall be tried within 120 days of the date he was taken into custody. Subsection (b) further provides that persons on bail or recognizance shall be tried within 160 days from the date they demand trial. (Ill. Rev. Stat. 1987, ch. 38, par. 103—5(b).) Failure to try an accused within this statutory time frame results in the discharge of the accused. (See, e.g., People v. Lykes (1984),
Here, once the proceedings were terminated in Perry County, defendant was transferred immediately to the penitentiary. Defendant was neither returned to. nor held in custody for Randolph County, and, accordingly, Randolph County never obtained custody of defendant following the termination of the Perry County proceedings. Randolph County was not given an opportunity to bring defendant to trial. As a result, the 120-day period with respect to the Randolph County charges never started to run. Rather, once defendant was transferred to the penitentiary, it was incumbent upon to him to invoke the provisions of the Intrastate Detainers Act to trigger his speedy trial rights. This the defendant did not do; consequently, he was not entitled to discharge of his Randolph County charges. It is true defendant never posted bond in connection with his Randolph County charges. Defendant’s confinement in the penitentiary, however, was pursuant to his Perry County sentence, not his inability to make bail with respect to the Randolph County charges. Defendant, therefore, was in the custody of the Department of Corrections, not that of Randolph County. The trial court made no error in denying defendant’s motion for discharge. See People v. Davis (1981),
Defendant also argues on appeal he is entitled to 444 days of credit toward his present sentence because of the time spent in custody between the setting of his bond and his sentencing on the Randolph County charges. Defendant believes, under this court’s interpretation of section 5 — 8—7(b) of the Unified Code of Corrections as set forth in People v. Higgerson (1987),
For the aforementioned reasons, we affirm the judgment of the circuit court of Randolph County.
Affirmed.
CHAPMAN and HOWERTON, JJ., concur.
