Opinion
December 5, 1988
Appeal from the Supreme Court, Kings County (Corriero, J.).
Ordered that the judgments are modified, on the law, by vacating the sentences imposed; as so modified, the judgments are affirmed, and the matter is remitted to the Supreme Court, Kings County, for resentencing.
The defendant failed to preserve for appellate review his challenge to the sufficiency of his plea allocution for the crime of attempted robbery in the first degree (see, People v Pellegrino, 60 N.Y.2d 636). Moreover, the defendant's plea of guilty to a lesser crime under indictment No. 665/84 constituted a waiver of his right to challenge the factual basis of his plea (see, People v Pelchat, 62 N.Y.2d 97; People v Kenny, 143 A.D.2d 945).
However we agree with the defendant's contention that the sentences imposed must be vacated as a result of the sentencing court's assertion that it had no discretion to impose any sentence other than that negotiated at the plea proceedings. In view of the court's admitted failure "to perform its obligation to exercise its own independent discretion in imposing sentence based upon its review of all relevant factors (see, People v Farrar, 52 N.Y.2d 302, 305) and not to simply treat the imposition of sentence as a ministerial function" (People v Martinez, 136 A.D.2d 745, 746), the sentences imposed must be vacated and the matter remitted for resentencing. In so doing, we do not pass upon the propriety of the sentences imposed. Mollen, P.J., Brown, Kunzeman, Weinstein and Kooper, JJ., concur.