The present appeal comes to us from an order of the criminal division of the common pleas court of Allegheny County purporting to revoke appellant’s parole and sentencing him to a term of incarceration of from two and a half years to five years. We now reverse the judgment of sentence entered and remand the case for proceedings not inconsistent with this opinion.
Appellant was arrested July 10, 1974 on a charge of robbery. Shortly after his arrest and before his arraignment appellant exhibited “bizarre behavior;” following testimony by the director of the County’s Behavior Clinic, a board certified psychiatrist, appellant was ordered committed to Mayview State Hospital for sixty days. This commitment was made pursuant to Section 408 of the Mental *266 Health & Mental Retardation Act of 1966, Special Sess. No. 3, October 20, P.L. 96, art. iv, § 408; 50 P.S. § 4408. (Hereinafter, the Act of 1966 or the Mental Health & Mental Retardation Act of 1966.) 1 Upon the recommendation of the hospital’s professional staff the commitment was ordered continued on November 8, 1974 for a period of ten months or appellant’s attainment of competency sufficient, whichever was shorter, to allow him to stand trial on the robbery charge. In mid-January, 1975 the hospital informed the court that with the aid of medication appellant’s condition had significantly improved and that he was now competent to stand trial. Appellant was ordered returned to the county jail January 27, 1975. Apparently a board certified psychiatrist employed by the Behavior Clinic advised the court on January 31, 1975 that appellant was not criminally responsible for the robbery he committed July 10, 1974 and recommended acquittal by reason of insanity. 2 The same psychiatrist recommended appellant’s parole under the Act of 1911, May 11, P.L. 273, § 1; 1913, May 23, P.L. 335, § 1. 19 P.S. 1381 (Hereinafter, the Act of 1911). A bench trial was held February 13, 1975. Following the close of testimony, which included medical evidence, the court found appellant not guilty by reason of insanity. 3 Pursuant to the Act of 1911 the court ordered appellant placed on parole in the custody of the Allegheny County Parole and Probation Office for a period of five years. 4 As conditions for appellant’s *267 parole the court required him to reside with his father and to report to the nearest mental health clinic for continued medication and treatment as needed. No appeal was taken from this order of parole.
Appellant’s behavior between February 13, 1975 and August 1, 1976 was marked by numerous psychotic episodes followed by varying periods of civil commitment. On August 1, 1976 appellant threw his two month old child down a flight of concrete city steps, which action caused the child’s death. Appellant was apprehended shortly thereafter. Because he was once again determined to be unable to stand trial or assist in his defense he was committed to Fairview State Hospital, again pursuant to Section 408 of the 1966 Mental Health and Mental Retardation Act. He stood trial for the infanticide in April 1977, and was adjudged not guilty of murder by reason of insanity. The instant record does not reveal what action in the nature of commitment the court took following that acquittal. At any rate, appellant was brought before the court for a hearing on the revocation *268 of the parole order issued for the earlier robbery. On September 20, 1977, the court revoked the parole earlier imposed and sentenced appellant to a term of imprisonment. 5
The illegality of sentence is not a waivable matter and may be considered by the appellate courts of the Commonwealth
sua sponte.
See
Commonwealth
v.
Schilling,
The Act of March 31, 1860 empowered the Commonwealth’s criminal courts to keep a person of unsound mind in strict custody so long as that condition pertained, even following acquittal of that person for reasons of insanity. Act of March 31, 1860, P.L. 427, § 66; Act of April 17, 1929,
*269
P.L. 532, § 2. 19 P.S. § 1351. (Hereinafter, the Act of 1860.) The Act of May 11, 1911 specifically allowed the courts to release persons acquitted by reason of insanity from strict custody and to place them on parole. In
Commonwealth v. Wilcox,
Commitment of person acquitted of crime because of insanity.
(a) Whenever any person charged with any crime is acquitted on the ground of insanity or having been insane at the time he committed the crime, the jury or the court as the case may be, shall state such reason for acquittal in its verdict.
(b) In such event, the court may direct the Attorney for the Commonwealth to act as petitioner to initiate commitment proceedings under section 406.
50 P.S. § 4413. The Commonwealth argues that the Act of 1966, although it permits the court to direct proceedings under another section of the Act, to-wit, Section 406, 50 P.S. § 4406, does not preclude parole of the person acquitted as per the Act of 1911; 19 P.S. 1381. The Commonwealth’s argument ignores the teaching of Commonwealth ex rel. DiEmilio v. Shovlin, supra, where the Supreme Court stated:
Thus the Mental Health and Mental Retardation Act of 1966 evidences a clear legislative intent that those defend *270 ants acquitted on the ground of insanity were to be accorded the same procedural safeguards when committed for medical treatment as any other individual committed under section 406. To achieve that end the Legislature by its Mental Health and Mental Retardation Act of 1966 repealed the Act of 1860 by providing in section 4701(b) of the Mental Health and Mental Retardation Act of 1966: “All other acts and parts of acts are repealed in so far as they are inconsistent herewith.”
In enacting the Mental Health and Mental Retardation Act of 1966 the Legislature . . . established a comprehensive program for the commitment and medical treatment of all mentally disturbed individuals....
Id.,
*271
Ordinarily the remedy for the imposition of an illegal or erroneous sentence is not discharged but remand to the lower court for resentencing. See
Commonwealth v. Bailey,
Parole revocation reversed, judgment of sentence vacated and case remanded for proceedings not inconsistent with this opinion.
Notes
. Section 502 of the Mental Health Procedures Act, 1976, July 9, P.L. 817, No. 143 (50 P.S. § 7502) repealed this section except insofar as it related to mental retardation or to persons who are mentally retarded.
. The record transmitted to this Court contains neither transcript of testimony nor copy of any written communication in this regard. However, because it is reported in the lower court’s opinion we will take it to be an accurate statement of the facts.
. The instant record does not contain the notes of testimony of this trial either.
. The Act of 1911 reads:
Release on parole after acquittal because of insanity.
When any person charged with any crime or misdemeanor has heretofore been, or shall hereafter be, acquitted by the jury, on the *267 ground of insanity, such person may be released from custody on parole, by the court wherein such person shall have been so acquitted.
Act of May 11, 1911, P.L. 273, § 1; May 23, 1913, P.L. 335, § 1. 19 P.S. 1381.
It was apparently adopted as an adjunct to the Act of March 31, 1860, P.L. 427, § 66; 1929, April 17, P.L. 532, § 2. 19 P.S. 1351. The Act of 1860 reads:
Proceedings after acquittal on the ground of insanity; costs.
In every case in which it shall be given in evidence upon the trial of any person charged with any crime or misdemeanor, that such person was insane at the time of the commission of such offense, and he shall be acquitted, the jury shall be required to find specially whether such person was insane at the time of the commission of such offense, and to declare whether he was acquitted by them on the ground of such insanity; and if they shall so find and declare, the court before whom the trial is had shall order the cost of prosecution to be paid by the county, and shall have the power to order him to be kept in strict custody, in such place and in such manner as to the said court shall seem fit, at the expense of the county in which the trial is had, so long as such person shall continue to be of unsound mind.
Id. The Act of 1911 was specifically repealed by the Judiciary Act Repealer Act (JARA), Act of 1978, April 28, P.L. 202, No. 53, § 2(a)[377] and not reenacted elsewhere.
. Appellant’s brief reveals that following psychotic episodes in prison he was removed to Fairview State Hospital.
. Because the court had no statutory authority to order appellant’s parole or imprisonment we need not address the issue of whether it constitutes cruel and unusual punishment under the Eighth Amendment to the federal Constitution to sentence a person found not guilty by reason of insanity to parole, or subsequently to revoke parole. Nor need we consider whether the Mental Health Procedures *271 Act of 1976 repealed the Acts of 1860 and 1911 since we have already held the latter Acts repealed by the Act of 1966.
