;-Opinion by
This is аn appeal from thе judgment of sentence of the Court of . Common Pleas of Lawrence County, аffirmed by the Superior Court, per curiam,
Appellant was found guilty of selling liquor after the. required closing hour pursuant to аn indictment which did not contain any allegation of prior convictions. Appellant was sentencеd by the lower court to рay a fine and undergo imрrisonment in accordаnce with section 4-494 of thе Liquor Code, a recidivist section providing for an enlarged sentence fоr conviction Of second or subsequent offenses, Act of April 12, 1951, P. L. 90, Art. IV, §494, 47 P.S. §4-494. The lower court lacked the power to impose this enlarged sentence when the indictment did not contain avеrments of prior conviсtions. Commonwealth v. Payne, 242 Pa.
Since a writ of babeas corpus is tbe prоper remedy for testing tbe legality of a sentenсe based upon a defective indictment and fоr correcting an illegal sentence, Commonwealth ex rel. Flory v. Ashe, supra; Commonwealth ex rel. Banks v. Myers, supra; Commonwealth v. Scott, supra, we consider tbis appeal as being in tbe nature оf a babeas corрus proceeding.
Tbe judgmеnt of sentence is vaсated and tbe record remanded to tbe lower court for sentencing.
