Opinion
J.* This is аn appeal from a judgment based upon appellant’s pleas of guilty to an indictment charging, in count I thereof, conspiracy to sell a controlled substance in violation of Penal Code section 182, and, in count II thereof, sale of a controlled substance in violation of Health and Safety Code section
11379. The circumstances out of which these charges arose commenced with the arrest of one Taylor as a result of a search of his residence by one Detective Matt. The search, made pursuant to permission granted by a term of probation, resulted in the finding of approximately 1,000 *327 initially thought to be contraband but later determined to contain no illegal substance. Aftеr Taylor’s arrest, he agreed to cooperate with the police as an informer and agent in return for monetary benefits, an agreement to shorten the terms of his probation, and, presumably, an agreement not to press charges concerning the pills then thought to be contraband. Subsequently, when it developed that the pills were not contraband, Taylor proceeded to carry out his part of the bargain anyway, and appeared before the grand jury with full knowledge of the true nature of the pills.
After his enlistment as an undercover agent, Taylor arranged to tape telephone conversations in which offers were made to sell him pills. Thereafter, he taped a telephone conversation allegedly with the appellant and one Agrillo in which they offered to sell 25,000 amphetamine pills to Taylor for the sum of $2,000. The pills were ultimately delivered by appellant and Agrillo to Taylor and Detective Matt at a prearranged place, the agreed sum of money was paid, and appellant and Agrillo were then arrеsted, resulting in the charges herein.
Appellant was represented at the commencement of the proceedings by Attorney Garrett. He pleaded not guilty at his arraignment, and subsequently a motion under section 1538.5 of the Penal Code for the suppression of the evidence obtained through the wiretaps was heard and denied. A Penal Code section 995 mоtion to set aside the indictment was also heard and denied. Appellant’s attorney then filed an application for temporary stay on appeal with this court pursuant to section 1538.5 of the Penal Code. His first petition was rejected as being defective in form. A second petition filed by him on September 20, 1974, was denied as being untimely on September 23, 1974, the day that appellant’s trial commenced. On that date, and before jury selection was completed, appellant moved to withdraw his plea of not guilty. Permission was granted and he entered pleas of guilty to both counts of the indictment. He specifically waived his rights in open court. The record does not reveal any reduction of either оffense or other agreements made in consideration of his guilty plea; and in response- to a question asked by the judge he stated that the only reason he was pleading guilty was because he was in fact guilty. The judge did continue the time for sentencing 30 days to permit appellant to appeal, and this was the only concession made to apрellant on the record.
On October 23, 1974, the date set for sentencing, Robert F. Perez, appellant’s counsel herein in this appeal, was substituted as counsel for *328 appellant in the place of Garrett in the court below. He immediately, prior to sentencing, moved to withdraw the plea of guilty, which motion was denied on November 8, 1974. He also made a second motion to set aside the indictment pursuant to Penal Code section 995; this motion was also denied on November 8, 1974, and the court thereupon sentenced appellant.
Appellant now appeals from the judgment after the plea of guilty on numerous grounds. A certificate of probable cause was issued by the trial court from (1) the denial of the motion to set aside the pleas of guilty, and (2) from the denial of the second motion to set aside the indictment under Penal Code section 995. In addition, appellant contends that the sentence imposed by the judgment which followed the plea constituted cruel and unusual punishment within the meaning of article I, section 6 of the California Constitution. Additional pertinent facts will be related in connection with our discussion of these contentions.
I. Denial of the Motion to Withdraw Appellant’s Plea of Guilty.
In considering the propriety of the denial of the motion to withdraw appellant’s guilty plea, we preliminarily observe that a plea of guilty may be withdrawn at any time before judgment for good cause shown under the provisions of Penal Code section 1018.
1
The granting or denial of an application to withdraw a guilty plea is within the discretion of the trial court after a consideration of all the factors necessary to bring about a just result; and the decision of the trial judge will not be disturbed on appeal unless an abuse thereof is clearly demonstrated.
(People
v.
Superior Court (Giron)
(1974)
*329 We now examine the various grounds which appellant contends show an abuse of discretion by the trial court in denying his application for leave to withdraw his guilty plea.
(1) Appellant contends that he did not understand the distinction between a general or unrestricted right to appeal and the right which would be limited by a certificate of probable cause; that at the time of entering his plea he thought that all matters theretofore raised on his behalf, including those raised in a motion under Penal Code section 995, would be preserved on appeal, and but for this belief he would not have pleaded guilty. This contention, and a concomitant contention that his mistaken belief was caused by a misrepresentation made by his then attorney, was the subject of considerable evidence adduced at the hearing on the motion to withdraw before the trial court. Although the evidence is unclear, there is testimony by appellant’s attorney, Garrett, supportive of the conclusion that appellant, at the time of entering his guilty plea, was concerned only with the matters connected with his Penal Code section 1538.5 motion, a writ of prohibition or mandate having just been denied by this court; and that he was properly advised that these matters would be preserved for further appellate review under Penal Code section 1538.5, subdivision (m).
It is also undisputed that no conditions were made or attached to his guilty plea insofar as the trial court was informed;
2
before the trial judge accepted appellant’s guilty plea appellant affirmatively stated that no promises had been made to him. The case is thereby distinguished from
People
v.
Brown
(1971)
(2) Appellant also contends he was denied the effective assistance of counsel, and that his plea should therefore be set aside. He bases this contention on two alleged instances of inadequate representation:
(a) Attorney Garrett admittedly did not consider as a defense what appellant now claims were defects in.the chain of possession of.the narcotics in question. But an examination of the grand jury transcript reveals adequаte identification and chain of possession testimony; appellant has not demonstrated that he did in fact have a meritorious defense in this regard. Inadequacy of counsel is not established by counsel’s failure to raise a defense which has no substantive merit.
(b) Attorney Garrett did not raise the issue of lack of consent by Taylor to the recording of the tаped conversation. But no question of consent is shown by an examination of the record, and no facts showing that this was a meritorious defense were brought to the attention of the trial court on the motion to withdraw appellant’s guilty plea.
Where trial counsel fails to make careful inquiries and investigations which result in the withdrawal of a crucial defensе from the case, the defendant is deprived of the assistance of counsel.
(People
v.
Stephenson
(1974)
*331 Here appellant failed in his burden of proving ineffectiveness; there was no ignorance of the law or facts shown, and no failure to recognize a defense that was crucial or even meritorious.
Applicable to this case are the words of the Supreme Court in
Giron, supra,
Considering all factors, we find no clear and convincing evidence that appellant’s plea of guilty was not the result of his free and clear judgment. No abuse of discretion being found, the order denying the motion to vacate the plea will not be disturbed.
II. Refusal of the Trial Court to Set Aside the Indictment.
After appellant had entered his plea of guilty, but before judgment was pronounced, his substituted counsel made a second motion to set aside the indictment. The trial court refused to entertain the motion on the grounds that it was not timely filed. Appellant charges error, contending the trial court could still hear the motion “prior to trial” under the provisions of Penal Code section 997. 4
The purpose of Penal Code section 997 is to prevеnt unnecessary trials.
(People
v.
Sigal
(1967)
Obviously, the intent of the Legislature in amending the sеction was to extend the time until trial where a plea of not guilty had been entered. Where a plea of guilty is entered, such a plea eliminates the trial and must necessarily terminate the right to contend that the indictment or information was based upon insufficient evidence. To construe the amendment otherwise would be to extend the time to make such a motion indefinitely even up to and after taking an appeal; and it is apparent from this section, and from section 996 of the Penal Code 5 that the Legislature intended a definite termination period on the right to raise such issues.
Furthermore, a plea of guilty constitutes an admission-of each element of the offense. (People v.
Stanworth
(1974)
III. Was the Punishment Imposed Cruel and Unusual and in Violation of Article I, Section 6 of the California Constitution?
Appellant next сontends that the punishment imposed for a violation of Health and Safety Code section 11379 is a cruel and unusual punishment. He bases this contention on article I, section 6 of the California Constitution which provides, in part: “Excessive bail shall not be required, nor excessive fines imposed; nor shall cruel or unusual punishments be inflicted.”
(1) He first argues that the sentencе of five years to life is cruel and unusual punishment. The recent case of
People
v.
Wingo
(1975)
We hold that the same considerations apply in the case of the violation of Health and Safety Code section 11379. The nature of the offense, and the circumstances surrounding it, can show substantial and important variations; the act involved may vary from simply giving away one pill to commercially selling thousands of amphetamine pills for profit, as was here charged. Obviously, as in Wingo, whether the punishment, fits the crime cannot be ascertained until after the punishment has been determined; habeas corpus will then be appellant’s available remedy.
(2) Appellant also claims that the minimum of three years before eligibility for parole, as fixed in Health and Safety Code section 11379, constitutes cruel and unusual punishment.
In
People
v.
Serna
(1975)
The judgment is affirmed.
Brown (G. A.), P. J., and Thompson, J., * concurred.
Appellant’s petition for a hearing by the Supreme Court was denied December 30, 1975.
Notes
Assigned by the Chairman of the Judicial
Penal Code section 1018 provides in pertinent part: “. . . On application of the defendant at any time before judgment the court may, and in case of a defendant who appeared without counsel at the time of the plea the court must, for a good cause shown, permit the plea of guilty to be withdrawn and a plea of not guilty substituted. . . . This section shall be liberally construed to effect these objects and to promote justice.”
The only mention of record of appellant’s appeal rights at the time he changed his plea was as follows:
“THE COURT: In accordance with the laws of the State of California relating to criminal cаses, this case will be referred to the Probation Office for its investigation and report back to this Court. Now let me stop right there.
“Mr. Garrett, you explain to me you’d like to have this time of sentencing put over for 30 days.
“MR. GARRETT: Yes.
“THE COURT: So you can make certain motions in the Appellate Court and I am willing to do this, however, Mr. Waters, unless you waive time for pronouncement оf judgment and sentence I must do this not later than 21 days from today.
“THE DEFENDANT: I will waive time.”
Penal Code section 1538.5, subdivision (m), provides .in part as follows: "... A defendant may seek further review of the validity of a search or seizure on appeal from a conviction in a criminal case notwithstanding the fact that such judgment of conviction is predicated upon a plea of guilty. Such reviеw on appeal may be obtained by the defendant providing that at some stage of the proceedings prior to conviction he has moved for the return of property or the suppression of the evidence.”
We note that a petition for a writ under Penal Code section 1538.5, subdivision (m), was in fact filed with the Supreme Court, and was later denied.
Penal Code section 997 provides, in part, as follows: “The court may entertain such motion [under Pen. Code, § 995] prior to trial whether or not a plea has been entered and such plea need not be set aside in order to consider the motion.”
Section 996 provides; “If the motion to set aside the indictment or information is not made, the defendant is precluded from afterwards taking the objections mentioned in Section 995.”
Retired judge of the superior court sitting under assignment by the Chairman of the Judicial Council.
