— Appeal from a judgment of the Monroe County Court (John J. Connell, J), rendered May 22, 2009. The judgment convicted defendant, after a nonjury trial, of criminal sale of a controlled substance in or near school grounds, criminal sale of a controlled substance in the third degree and criminal possession of a controlled substance in the third degree.
It is hereby ordered that the judgment so appealed from is unanimously affirmed.
Memorandum: Defendant appeals from a judgment convicting him upon a nonjury verdict of criminal sale of a controlled substance in or near school grounds (Penal Law § 220.44 [2]), criminal sale of a controlled substance in the third degree (§ 220.39 [1]), and criminal possession of a controlled substance in the third degree (§ 220.16 [1]). Defendant failed to preserve for our review his contention that reversal is required based on prosecutorial misconduct on summation (see People v Green, 43 AD3d 1279, 1281 [2007], lv denied 9 NY3d 1034 [2008]) and, in any event, that contention is without merit. We agree with defendant that it was improper for the prosecutor to remark that a witness was afraid of defendant inasmuch as that was not a fair comment on the evidence (see People v Facciolo, 288 AD2d 392, 394 [2001]; cf. People v Bahamonte, 89 AD3d 512, 512-513 [2011], lv denied 18 NY3d 881 [2012]). We further agree with defendant that the prosecutor improperly used defendants past crimes of violence to suggest that the witness had “a reason to be afraid.” It is fundamental that the function of cross-examining a defendant about his or her prior criminal, vicious, or immoral acts “is solely to impeach [the defendant’s] cred