Defendant appeals from a sentence of confinement imposed after the court found him in violation of his probation for the second time. The defendant argues that the lower court committed various sentencing errors. We affirm.
In August, 1974 the defendant pled guilty to burglary, larceny, receiving stolen goods, and conspiracy to commit burglary; the Commonwealth nol pressed other charges against him. As a result he was sentenced to five years’ probation.
In December, 1977 after a hearing defendant was found to have violated his probation since he had been convicted of another offense. 1 The court once again sentenced the defendant to five years’ probation; it also ordered the defendant to undergo inpatient therapy for drug addiction.
In August, 1979 the court, after a hearing, found the defendant had once again committed a crime during probation. At the hearing it was shown that he had been arrested and charged with burglary, theft, receiving stolen property, conspiracy, possession of an instrument of a crime, and criminal mischief, but had not yet been tried on those charges. Based on the testimony produced at the hearing the court concluded that the defendant had committed a crime while on probation. It appeared to the court that the defendant had broken into a drug store, had fled after the alarm had sounded and had been apprehended in the vicinity of the crime.
After the hearing the court revoked probation and imposed a term of imprisonment of two to five years. Subse *332 quently the defendant timely filed a petition for modification of sentence. The petition was denied and this appeal followed.
Defendant argues that the sentencing record fails to show that the court considered the “five sentencing alternatives and the factors that weigh in favor of each.” See 42 Pa.C.S.A. § 9721. Appellant’s brief 9. He also argues that in revoking probation and imposing confinement the court failed to make the findings required by 42 Pa.C.S.A. § 9771(c). 2 The Commonwealth argues that these issues have been waived since they were not raised in defendant’s petition for modification of sentence. We agree that these issues have been waived.
Pa.R.Crim.P. 1410 requires that a motion to modify a sentence be in writing and be filed within ten days after imposition of sentence. The comment to Rule 1410 states that “[t]his rule provides a procedure whereby a motion to modify sentence
must be raised
in the first instance before the sentencing court, thereby giving that court the first opportunity to modify the sentence.” (Emphasis added). Moreover, Pa.R.Crim.P. 1405(c) requires, inter alia, that the judge at the time of sentencing advise the defendant that he has the right to challenge the propriety of his sentence, and that only claims raised in the lower court may be raised on appeal. Read together these rules require that challenges to the propriety of a sentence must be raised in the lower court or the claim will be waived on appeal. These rules reflect the principle that the lower court should be given the opportunity to correct its errors and these rules are in accord with the rule that “[ijssues not raised in the lower court are
*333
waived and cannot be raised for the first time on appeal.” Pa.R.A.P. 302. Finally, numerous cases have held that failure to raise particular issues at the time of sentencing or in a motion to modify sentence results in waiver on appeal.
E.g., Commonwealth v. Collins,
In the instant case the petition to modify the sentence stated in pertinent part that “[counselors have recommended that the petitioner continue his participation in the drug addiction program.” This statement is insufficient to inform the lower court that it erred by not considering the “five sentencing alternatives and the factors that weigh in favor of each” thus that issue is not preserved for appeal.
The above-quoted statement from the petition to modify is also insufficient to inform the lower court that it erred by failing to make the findings required by 42 Pa.C.S.A. § 9771(c). Nevertheless our analysis does not end there. It may be argued that the imposition of a sentence of total confinement when there are no findings required by 42 Pa.C.S.A. § 9771(c) is an illegal sentence. If a sentence is illegal, it may be that the issue is not waived for failing to raise it in the lower court. 3 If we assume arguendo that an *334 issue of illegal sentence is not waived, we must consider whether the judge’s failure to make the findings required by 42 Pa.C.S.A. § 9771(c) rendered the sentence of total confinement illegal.
In the instant case the revocation hearing contains evidence from which the judge could have made one of the findings required by 42 Pa.C.S.A. § 9771(c). Specifically the judge could have found that the defendant would be likely to commit another crime or that total confinement was essential to vindicate the authority of the court. We hold that when the record contains evidence from which the judge could have made the findings required by 42 Pa.C.S.A. § 9771(c), the judge’s failure to expressly make such find *335 ings will not render a sentence of total confinement illegal. Since the sentence was not illegal in this respect, the defendant was obliged to raise this issue in his motion to modify. 4
Although we hold that two of defendant’s claims are waived, we shall consider the merits of defendant’s claim that the sentence was harsh and excessive. We consider this argument only in light of defendant’s statement in the motion to modify his sentence that counselors have recommended his continued participation in the drug addiction program.
The imposition of a proper sentence is a matter vested in the sound discretion of the trial court.
Commonwealth
v.
Edrington,
In the instant case the defendant was given probation twice for the same offense. The court had placed the defendant on probation initially, and also a second time when it permitted probation despite the defendant’s first violation of probation by his conviction for a drug-related offense. In the instant violation of probation the court found the defendant’s burglary of a drugstore indicated that he still had a problem with drugs and that he was not satisfactorily progressing in the drug program. In these circumstances we cannot say that the judge abused his discretion by failing to follow the recommendation of drug counselors that the defendant continue in the program, and by implication, be free from imprisonment; the judge was not obliged to follow the counselors’ recommendation.
Order affirmed.
Notes
. The petition for a hearing and request for issuance of a bench warrant alleged that the defendant was arrested for a violation of the “Controlled Substance Drug Device and Cosmetic Act” and for receiving stolen goods. Appellee alleges in its brief that the defendant pled guilty to a violation of the Drug Act.
. 42 Pa.C.S.A. § 9771(c) provides:
(c) Limitation on sentence of total confinement.—The court shall not impose a sentence of total confinement upon revocation unless it finds that:
(1) the defendant has been convicted of another crime; or
(2) the conduct of the defendant indicates that it is likely that he will commit another crime if he is not imprisoned; or
(3) such a sentence is essential to vindicate the authority of the court.
This section was previously found in 18 Pa.C.S.A. § 1371(c).
. It is not clear whether at the present time failure to raise the claim that a sentence is illegal in a motion to modify the sentence results in waiver on appeal. Before Pa.R.Crim.P. 1410 was effective, certain claims of illegal sentence were not waived for failure to present the issue in the lower court.
E.g., Commonwealth v. Walker,
However, Pa.R.Crim.P. 1410 may require all challenges to a sentence, including claims of illegality, to be raised in a motion to modify sentence. As we have discussed earlier in this opinion when Pa.R. Crim.P. 1410 and 1405(c) are read together they require that chai
*334
lenges to the propriety of a sentence must be raised in the lower court or the claim will be waived on appeal. Thus the question becomes whether the term “propriety” used in Pa.R.Crim.P. 1405(c) includes illegality. There is conflicting authority on this point. Pa.R.Crim.P. 1410 was promulgated in response to the Supreme Court’s decision in
Commonwealth v. Riggins,
Moreover, the idea that challenges to the legality of the sentence must be made on the lower court is not new. Before Pa.R.Crim.P. 1410 was effective we stated that challenges to the legality of the sentence should be made in the lower court.
Commonwealth v. Brunner,
. We also note that the defendant failed to include this issue in his statement of matters complained of on appeal.” See Pa.R.A.P. 1925(b). Thus we do not have the benefit of the lower court’s opinion on this issue.
