
181 Mich. App. 137 (1989)
449 N.W.2d 121
PEOPLE
v.
HUNDLEY
Docket No. 108568.
Michigan Court of Appeals.
Decided August 25, 1989.
Frank J. Kelley, Attorney General, Louis J. Caruso, Solicitor General, George B. Mullison, Prosecuting Attorney, and Martha G. Mettee, Assistant Prosecuting Attorney, for the people.
*138 C. Michael Gorte, for defendant on appeal.
Before: HOOD, P.J., and CAVANAGH and J.W. FITZGERALD,[*] JJ.
PER CURIAM.
In this appeal as of right defendant challenges the trial court's denial of his motion to withdraw his guilty plea. We affirm.
Defendant originally entered a plea of guilty to one count of criminal sexual conduct, second degree, MCL 750.520c(1)(a); MSA 28.788(3)(1)(a), and to being an habitual offender, second offense, MCL 769.10; MSA 28.1082.
Complainant was a six-year-old girl and the incidents occurred while defendant's girlfriend was babysitting the child. The plea was entered pursuant to a plea agreement whereby, if defendant admitted the validity of all charges against him, the prosecutor would request a nolle prosequi of two counts of CSC, first degree, and would agree that defendant would not be proceeded against as a third-felony offender. Defendant was sentenced as a second felony offender to a prison term of from 180 to 270 months.
Following his plea and prior to sentencing, defendant retained new counsel and moved to withdraw his guilty plea on the bases that he was not guilty of the offense charged, that the factual basis he gave at his plea had been prepared by his former counsel and was not truthful, and that he had been advised that he would be placed on probation as part of the plea agreement.
A court should be liberal in considering a request to withdraw a guilty plea based on a claim of innocence. However, the request need not be granted where it is obviously frivolous. People v *139 Camargo, 163 Mich App 581, 584; 415 NW2d 211 (1987).
Defendant expressed no reservations at his plea hearing regarding the nature of his charges. He was informed of the possible maximum prison sentence. He indicated he understood the plea agreement and that no other promises had been made. In denying defendant's motion to withdraw his plea, the court  based on its evaluation of defendant and the record  found that defendant had the ability to understand the proceedings, that he understood what he was doing when the plea was entered, and that, until the motion, defendant had consistently admitted to his improper activities.
Three days before the plea hearing defendant signed a statement setting forth his understanding of the plea agreement and a factual basis for the plea. The statement is apparently encouraged by the local court to be sure that everyone understands the nature of the plea prior to the hearing. Defendant's statement at the plea hearing corresponds to the factual basis in the written statement. That counsel assisted in drafting the statement is not a basis for withdrawing the plea.
On the record before us, we cannot say that the trial court abused its discretion in denying defendant's motion. People v Zaleski, 375 Mich 71, 79; 133 NW2d 174 (1975).
Affirmed.
NOTES
[*]  Former Supreme Court Justice, sitting on the Court of Appeals by assignment.
