This is an appeal from the order denying appellant’s motion to vacate sentence. Appellant contends that the sentence he received on the charge of corruption of minors 1 was illegal because that offense had merged with the crimes of indecent assault 2 and indecent exposure 3 for *268 which he was given consecutive sentences. We agree with appellant in part and, for the reasons that follow herein, vacate the sentence for indecent exposure and affirm the sentences for indecent assault and for corruption of minors, but with credit given for the time served on the indecent exposure conviction.
On May 31, 1978, appellant pled guilty to the charges of indecent exposure, indecent assault, and corruption of minors. These charges arose out of an incident which occurred on January 10, 1978. On that date, appellant entered a home in order to provide exterminating services for the residents. There, he induced a four year old girl to sit on his lap, at which time he placed his hand under her shirt and touched her chest. He then opened his trousers, exposed his genitals, and had the girl touch his genitals until he ejaculated on her hands.
On July 7, 1978, appellant was sentenced to consecutive terms of one to two years for indecent assault, one to two years for indecent exposure, and five years probation for corruption of minors. On July 12, 1978, a petition to withdraw his guilty plea was filed by appellant on the basis that the offenses of indecent exposure and indecent assault should have merged for purposes of sentencing. This petition was denied on July 25, 1978 and an appeal from that denial was filed on August 17, 1978 with the Superior Court which affirmed the judgment of sentence.
4
*269 On March 5, 1982, appellant filed a motion to vacate sentence. 5 The motion was denied on April 20, 1982 and this appeal timely followed.
Appellant argues that the crime of corruption of minors merged with the offenses of indecent assault and indecent exposure for sentencing purposes. For the reasons that follow herein, we agree, in part, with appellant’s argument.
One test for determining whether one offense merges into another for sentencing purposes is whether one crime necessarily involves the other, i.e., the essential elements of one must also be the essential elements of the other.
Commonwealth v. Williams,
Instantly, appellant was sentenced for indecent assault, indecent exposure, and corruption of minors.
7
Al
*270
though the information charging corruption is not clear on the point, the Commonwealth concedes that appellant’s actions constituting either the indecent exposure or the indecent assault were the corrupting act forming the basis of the corruption of minors charge. Thus, once the Commonwealth had proven the crime of corruption of minors, no additional facts were necessary to prove either the offense of indecent exposure or the offense of indecent assault. Therefore, either the indecent assault or the indecent exposure offense merged with the crime of corruption of minors. See
Commonwealth v. Watson,
We emphasize, however, that only one of the two crimes of indecent assault and indecent exposure must merge with the offense of corruption of minors. This conclusion stems from this Court’s prior affirmance of appellant’s judgment of sentence which he had challenged on the ground that the
*271
crimes of indecent assault and indecent exposure merged for sentencing purposes. Although the judgment of sentence was affirmed in a
per curiam
order, the affirmance necessarily implies that the Court determined that the crimes did not merge for sentencing purposes, but were based on two distinct acts. Since these offenses did not themselves merge, we cannot find that both offenses merged with the crime of corruption of minors. Cf.
Commonwealth v. Maddox,
It also makes no difference, instantly, which of the offenses is chosen as the one which merges with the corruption of minors charge since both indecent assault and indecent exposure are second degree misdemeanors. Therefore, choosing one as the offense which merges with the corruption of minors charge and the other as a separate offense does not create a problem. 10
Next, we must determine for which of the merged crimes appellant should have been sentenced. When crimes merge for sentencing purposes, the one for which a defendant may be sentenced is the one to which the legislature has attached the greatest penalty.
Commonwealth v. Boerner,
However, as noted above, appellant was sentenced to consecutive terms of one to two years for indecent assault, one to two years for indecent exposure, and five years probation for corruption of minors. “In this situation, where we cannot determine whether the declared invalidity of a conviction on one count may have affected the lower court’s sentencing on the remaining counts, we must remand to give the lower court an opportunity to reconsider sentencing on all counts.”
Commonwealth v. Miranda,
Judgment of sentence vacated and case remanded for resentencing in accordance with this opinion.
Notes
. 18 Pa.C.S.A. § 3125 (repealed); see 18 Pa.C.S.A. § 6301.
. 18 Pa.C.S.A. § 3126.
. 18 Pa.C.S.A. § 3127.
. The appeal procedure followed by appellant in his original appeal was only superficially correct. Pa.R.A.P. 343 provides that, when a timely motion has been filed pursuant to Pa.R.Crim.P. 321, appeal from the judgment on the plea is to be taken from the final order disposing of the Rule 321 motion.
However, although the petition was captioned as petition to withdraw guilty plea, its substance was solely that of a motion to modify sentence. Unlike the filing of a motion challenging the validity of a guilty plea, the filing of a motion to modify sentence does not affect the running of the thirty day period for filing a timely notice of appeal. Pa.R.Crim.P. 1410 (comment). Since defendants should not be permitted to extend the time for appeal simply by altering the form *269 of their post-sentence motions, this Court could have quashed appellant’s original appeal as having been untimely filed.
. We note that no such type of motion is provided for in the Rules of Criminal Procedure. A challenge to a sentence after the ten days allowed under Pa.R.Crim.P. 1410 for filing a motion to modify sentence is more properly brought under the Post Conviction Hearing Act (PCHA), 42 Pa.C.S.A. § 9541 et seq. However, considering the fact that the question of legality of a sentence is never waived,
Commonwealth v. Fortune,
. Although this test is probably the one most often applied, the concept of merger is actually somewhat broader:
In merger of sentences cases, we focus not only on the similarity of the elements of the crimes but also, and primarily, on the facts proved at trial, for the question is whether those facts show that in practical effect the defendant committed a single criminal act, in which case there will be merger and only a single sentence may be imposed, or more than a single act, in which case there will be no merger and a sentence may be imposed for each act. Commonwealth v. Crocker,280 Pa.Super. 470 , 475,421 A.2d 818 ,
820-821 (1980) (citations omitted).
. 18 Pa.C.S.A. § 3125 provided in relevant part as follows:
Corruption of minors
(a) Whoever, being of the age of 18 years and upwards, by any act corrupts or tends to corrupt the morals of any minor less than 18 *270 years of age, or who aids, abets, entices or encourages any such minor in violating his or her parole or any order of court, is guilty of a misdemeanor of the first degree.
. We note that in the case of
Commonwealth v. Norris,
Although the above analysis certainly casts some doubt on whether this test has truly been satisfied, we are bound by the decision of the Supreme Court on this issue. See
Commonwealth
v.
Butch,
. This analysis implies, of course, that appellant could have been charged with another count of corruption of minors since there were two distinct corrupting acts. However, the Commonwealth chose not to do so.
. We are aware that a problem could exist in other cases if unequal offenses were involved. However, this question is not before us at this time and should be left for future resolution. See Maddox, supra.
. We note that the court in Watson, supra, stated that corruption of minors was a misdemeanor of the second degree. While such was the case prior to 1973, 18 Pa.C.S.A. § 3125(a) was amended on November 28, 1973, to make the crime a misdemeanor of the first degree.
. The Commonwealth contends that the general principle that our decision implies is that the charge of corruption of minors will always merge with the underlying corrupting act, and concludes that this fact means that there is no need for the offense of corruption of minors to exist. While we agree that the offense of corruption of minors will always mérge with the underlying act, we do not agree with the conclusion the Commonwealth draws from the facts. As was the case instantly, if the underlying act constitutes a less serious crime than the offense of corruption of minors, the corruption of minors charge is the crime for which the defendant may be sentenced. Moreover, we do not believe that the underlying act must itself constitute a criminal offense. See
Commonwealth v. Burak,
