Judgment, Supreme Court, New York County (Rena K. Uvil-ler, J., at suppression hearing; Ronald A. Zweibel, J., at plea and sentencing), rendered April 18, 2013, convicting defendant of attempted criminal possession of a weapon in the second degree, and sentencing him, as a second felony offender, to a term of 3V2 years, unanimously affirmed.
Defendant made a valid waiver of the right to appeal that forecloses review of his suppression claim (see People v Lopez, 6 NY3d 248, 256-257 [2006]). The court elicited the appeal waiver separately from its discussion of the rights automatically forfeited upon a guilty plea, and defendant also signed a valid written waiver (see People v Sanders, 25 NY3d 337, 340-342 [2015]; People v Ramos, 7 NY3d 737 [2006]).
Regardless of whether defendant made a valid waiver of his right to appeal, we find that the court properly denied his suppression motion. The record supports the conclusion that the police encounter with defendant was not an arrest requiring probable cause, but a forcible detention within the parameters of People v Allen (73 NY2d 378 [1989]), in the lawful course of which the police conducted a thorough patdown search of defendant’s clothing, resulting in the discovery of a firearm. Defendant did not preserve his claim that the police lacked reasonable suspicion to support a forcible detention, and we decline to review it in the interest of justice. As an alternative holding, we find it unavailing.
Concur — Andrias, J.R, Saxe, Feinman, Gische and Kahn, JJ.