Appeal from a judgment of the County Court of Chemung County (Hayden, J.), rendered December 7, 2007, convicting defendant upon his plea of guilty of the crime of criminal possession of a controlled substance in the fifth degree.
Defendant was arrested after his vehicle was pulled over on a routine traffic stop. Upon his arrest, defendant allegedly made spontaneous statements to the police regarding the presence of drugs in his vehicle. Defendant was thereafter indicted for criminal possession of a controlled substance in the fifth degree. Following his arraignment, at which defendant was represented by the Public Defender’s office, defendant’s counsel served discovery demands on the People and moved for various forms
On the morning the trial was to commence, defendant pleaded guilty to one count of criminal possession of a controlled substance in the fifth degree. He was later sentenced to one year of incarceration and one year of postrelease supervision. Defendant now appeals on the basis that he was denied a Mapp and/or Ingle hearing and that he received ineffective assistance of counsel. Because we find that defendant’s arguments are unpreserved and, in any event, are without merit, we affirm.
Defendant’s claims that he was denied a fair trial and that he did not receive the effective assistance of counsel are unpre-served for review due to his failure to move to withdraw his plea or vacate his judgment of conviction (see People v Johnson, 54 AD3d 1133, 1133-1134 [2008]; People v Parara, 46 AD3d 936, 937 [2007]) and, in any event, are without merit. Furthermore, insofar as defendant’s claims involve matters outside the record, they should be pursued via a CPL article 440 motion (see People v Cruz, 53 AD3d 986, 986 [2008]).
Upon pleading guilty, defendant waived his right to any pretrial hearings (see People v Socrates, 307 AD2d 546, 546 [2003]; People v White, 300 AD2d 830, 832 [2002], lv denied 99 NY2d 586 [2003]; People v Saxbury, 95 AD2d 871, 871 [1983]). We also note that, for counsel to be effective, he or she must provide meaningful representation (see People v Sorey, 55 AD3d 1063, 1064 [2008]; People v Johnson, 54 AD3d at 1134; People v White, 47 AD3d 1062, 1064 [2008], lv denied 10 NY3d 818 [2008]) as shown by an examination of the totality of the evidence, facts and law (see People v Baldi, 54 NY2d 137, 147 [1981]). Here, counsel attended court proceedings, filed pretrial motions to dismiss and to suppress, attempted to negotiate a plea agree
Peters, J.P., Rose, Lahtinen and Kavanagh, JJ., concur. Ordered that the judgment is affirmed.