delivered the opinion of the court:
Defendant, Ernest Lee Bratcher, appeals from a judgment entered foHowing a jury trial for the offense of aggravated battery in violation of section 12— 4(b)(6) of the Criminal Code (Ill. Rev. Stat. 1973, ch. 38, par. 12—4(b)(6)) and from a sentence imposed of 2 to 10 years’ imprisonment. Defendant was charged with two counts of aggravated battery. He was convicted of striking Officer Robert Moore, acquitted of the charge involving Officer Resch. Defendant raises the following issues for resolution by this court: (1) Whether the trial court erred in refusing defendant’s self-defense instruction, and (2) Whether the trial court erred by imposing the wrong sentence for the offense charged.
The following recitation of testimony related to the evidence as presented on the self-defense issue.
Robert Moore, a Decatur police officer, testified as follows. On July 4, 1973, he and Officer Resch observed a car out of control. The car was stopped. Thelma Moss was driving. The officer suspected that she was under the influence and requested Ms. Moss to perform several tests. The officer, however, decided to issue but one citation for improper lane usage and returned to the squad car to write up the citation. Defendant approached the scene and talked to Ms. Moss. Defendant then approached the squad car and initiated a conversation concerning the citation. Defendant began swearing, insisting that the officers would have to beat him up if they issued a citation. Officer Moore noticed the smell of alcohol on defendant’s breath. Both officers stepped out of the car. Defendant retreated but also raised Ms hands to a squaring-off position. Moore drew Ms Mghtstick but did not raise it. The officer then advised defendant three different times to leave the area. Each time defendant refused, repeating his original statements. The officer informed him he was under arrest for obstructing a police officer. Defendant was requested to go into a frisk position against the squad car. Defendant did so, at least to the point of putting Ms hands on the car. Moore started to return his nightstick to his belt. He looked up, saw defendant’s fist coming, dodged but was Mt above the ear and knocked back. At that point Officer Resch Mt defendant over the head with Ms mghtstick, and defendant started swinging wildly. A fracas and chase ensued, defendant eventually being subdued. Officer Resch substantially corroborates Moore’s testimony.
Officer Donald Brooks testified that he mterviewed defendant the morning after the incident. Mr. Bratcher admitted Mtting one of the officers but told Brooks that he felt that they were going to wMp him so that he took a swing first.
Defendant testified in Ms own behalf. He admitted being intoxicated and admitted that he was repeatedly asked to leave but refused to do so. Defendant’s version was that both officers had their mghtsticks raised up as they got out of the squad car. He stated that he was never told he was under arrest but was shoved against the car, told to leave, decided to do so and had taken a step away when he was shoved hard from behind. At this point he turned around and hit Officer Moore. Defendant further stated that he was not in fear but that the second shove surprised him and made Mm mad so that, in automatic reaction he turned around and hit Moore as hard as he could. He said he then realized what he had done, decided to quit and dropped his hands. According to defendant Officer Moore then told defendant that he was going to be taught a lesson and the two officers started beating on Mm with their nightsticks.
Defendant first contends that the court improperly refused to give an instruction (IPI — 24.06) tendered by defendant. The instruction is that on the use of force in defense of a person.
It is proper to give the self-defense instruction only if the issue of self-defense is raised by the evidence. (People v. Allen, 50 Ill.2d 280, 278 N.E.2d 762.) The trial judge refused to give this instruction on the grounds that the evidence did not raise the issue.
IPI—24.06, defendant's instruction, reads:
“A person is justified in the use of force when and to the extent that he reasonably believes that such conduct is necessary to defend Mmself against the imminent use of unlawful force.”
TMs is taken directly from the statute wMch defines the affirmative defense of self-defense. (Ill. Rev. Stat. 1973, ch. 38, § 7—1.) The Committee Comments to that section indicate that a person must actually believe that a danger exists and that force is necessary to avert the danger. Ill. Ann. Stat. ch. 38, § 7—1, Committee Comments (Smith-Hurd 1972).
Defendant’s own testimony negates the existence of a self-defense issue. Defendant testified that he struck out in anger and surprise. He said Ms action was an automatic response to the touch of the officer. Defendant specifically testified that he was not in fear at the time he Mt the officer. A self-defense issue arises only if the person acted to protect himself from the imminent use of unlawful force by another. Defendant testified to his own mental state and that testimony shows that defendant did not act to aver the use of unlawful force by another. Therefore the court did not err in refusing the instruction.
Defendant also contends that he was improperly sentenced. Defendant was convicted of aggravated battery under section 12 — 4(b)(6) of the Criminal Code (Ill. Rev. Stat. 1973, ch. 38, § 12 — 4) wMch states that a person who in committing a battery upon a peace officer engaged in Ms official duties commits an aggravated battery. Prior to the passage of the Unified Code of Corrections sections (a) (b) and (c) of the aggravated battery statute each contained their own penalty provisions. The penalty for a violation of section 12 — 4(a) was 1 to 10 years’ imprisonment (Ill. Rev. Stat. 1971, ch. 38, § 12 — -4(a)). The penalty for a violation of any of the subparagraphs of section 12 — 4(b) was contained in subsection (9) of that section and provided for imprisonment “in a penal institution other than the penitentiary not to exceed one year or in the penitentiary from one to 5 years.” Section 12 — 4(c) also contained its own penalty provisions.
The Unified Code of Corrections, however, became effective on January 1, 1973, and added a new section (d) to the statute which provided that aggravated battery is a Class 3 felony. A Class 3 felony carries a 1- to 10-year term of imprisonment (Ill. Rev. Stat. 1973, ch. 38, § 1005— 8 — 1(b)(4)). The individual penalties under section (a) and (c) were removed at that time. The penalty for section (b) contained in subsection (b)(9) was, however, not removed. Defendant therefore contends that it was improper for the trial court to have imposed a sentence which treats a section 12 — 4(b)(6) offense as a Class 3 felony. It is argued that the proper penalty was that contained in subsection 12 — 4 (b)(9). We agree.
We are cognizant of the fact that it was the intent of the legislature in drafting the Unified Code of Corrections to abolish all indictable misdemeanors and to establish a uniform sentencing structure. Nevertheless, upon adoption of the Unified Code of Corrections, the legislature saw fit to retain the penalty section contained in 12 — 4(b) (9) for the types of aggravated battery defined in the 9 subparagraphs of section (b) of the statute. We further note that before the adoption of the Unified Code the penalty for a section 12 — 4(b) aggravated battery was lesser than that contained in the section 12 — 4(a) aggravated battery where a person in committing a battery “intentionally or knowingly causes great bodily harm, or permanent disability or disfigurement.” We believe this differentiation in penalties is reasonable (People v. Hanson, 53 Ill.2d 79, 289 N.E.2d 611), and is clearly applicable to the type of offense committed in the instant case.
As further support for this conclusion we note the language contained in section 5 — 5—2(d) of the Unified Code (Ill. Rev. Stat. 1973, ch. 38, § 1005 — 5—2(d)) which provides as follows:
“(d) Notwithstanding the classification provided for in this Section, the term of incarceration imposed shall not exceed the maximum authorized by the statute defining the offense.”
It is also well established that penalty statutes must be strictly construed and that any ambiguity which might exist must be resolved in favor of the accused (People v. Isaacs, 37 Ill.2d 205, 226 N.E.2d 38). The trial court then erred in sentencing defendant for a Class 3 felony instead of under the sentencing provision provided by section 12 — 4(b) (9).
Accordingly, for tire reasons stated above the judgment of the circuit court of Macon County is affirmed, the sentence imposed is reversed, and the cause is hereby remanded for resentencing in accordance with the views expressed herein.
Judgment affirmed, sentence reversed and remanded.
CRAVEN, J., concurs.