delivered the opinion of the court:
Defendant has appealed from a dismissal of his post-conviction petition in which he challenged the propriety of his sentences foUowing his convictions for attempt rape and armed robbery. The public defender, who represents defendant on appeal, has filed a motion for leave to withdraw as counsel and a brief in support thereof, pursuant to Anders v. California (1967),
In 1970, defendant was convicted and sentenced to the penitentiary for consecutive terms of 10 to 14 years for attempt rape and 75 to 100 years for armed robbery. On January 26, 1973, the Illinois Supreme Court affirmed the convictions and sentences on direct appeal. (People v. Hopkins,
Our independent examination of the present record discloses that there are issues which could be presented on behalf of defendant; namely, the questions of whether he should be afforded the benefits of the Code insofar as it may affect his sentences, and whether the effect of that statute, if applicable, may be considered in a post-conviction proceeding to modify those sentences.
A defendant who was sentenced prior to the effective date of the Code may have his sentence modified in accord with its provisions if his direct appeal was pending at the time the Code became effective, as here, and its sentencing provisions would require a lesser sentence than under prior law. (People v. Nicks,
Thus, while it appears that the ameliorative effects of the Code are applicable to defendant’s sentences, the question remains whether a post-conviction remedy is a proper means of obtaining relief under the circumstances of this case. We think it is.
In People v. Ballinger,
We have examined those decisions which have held that a defendant may not seek a sentence modification under the Code by means of post-conviction relief (e.g., People v. Dorris,
Moreover, we do not believe the affirmance of defendant’s sentences on direct appeal would be res judicata, because the issue of applicability of the Code was not considered by the court in that appeal. In addition, it appears that the relevancy of the Code to defendant’s sentence for attempt rape did not become apparent until the decisions of the supreme court in People v. Harvey,
Thus, we hold that defendants sentence for attempt rape must be modified to 4 years 8 months to 14 years, and this sentence, as modified, must be served concurrently with the armed robbery sentence. The motion for leave to withdraw as counsel is granted, and we remand this cause with directions to amend the mittimus in conformity with the views herein expressed.
Affirmed, sentence modified.
BARRETT and DRUCKER, JJ., concur.
