Court for further proceedings, setting bail at $50,000. On this appeal, the People argue that the sentencing minutes demonstrate that petitioner’s constitutional rights were fully protected by the court; that habeas corpus should not have been permitted in lieu of a direct appeal from the judgment of conviction; and that collateral attack upon the judgment should properly have been made in a motion pursuant to GPL 440.10 (subd 1). The judgment should be reversed. Petitioner’s due process challenge to the voluntariness of his guilty plea and the legality of the sentence could have been reviewed directly by way of appeal or pursuant to GPL article 440 in the court of conviction. Habeas corpus is not an appropriate remedy
(People ex rel. World, u Jones, 88 AD2d 1096 , mot for lv to opp den 57 NY2d 608 ;
People ex rel. Gaines v Jones, 79 AD2d 1065 ;
People ex rel. Palmer v LeFevre, 72 AD2d 618 ). The facts of this case do not demonstrate a violation of petitioner’s fundamental constitutional rights so egregious as to compel a departure from traditional orderly procedure
(People ex rel. Keitt v McMann, 18 NY2d 257 ). Our examination of the plea and sentencing minutes confirms that petitioner’s plea was properly accepted by the court. This is not an instance where a defendant has related facts at the time of the plea inconsistent with his guilt (cf.
People v Beasley, 25 NY2d 483 ;
People v Serrano, 15 NY2d 304 ;
People v Jenkins, 72 AD2d 876 ). Petitioner, who was represented by counsel, acknowledged his comprehension of the plea bargain as explained by his attorney and admitted the underlying facts of the indictment. The court advised that the plea resulted in the surrender of petitioner’s constitutional right to a jury trial and of confrontation, and asked petitioner for an explanation of his behavior. While a notice of intention was filed indicating that an appeal would not be taken, petitioner was also advised he could file an appeal within 30 days of the conviction should he so choose. At sentencing, the record shows that both petitioner and his attorney were invited to make a statement before the court pronounced sentence (GPL 380.50). That petitioner declined to do so does not negate the opportunity accorded him. Contrary to his contention in the petition, he was further advised by the court that he would be sentenced as a second felony offender and was given full opportunity to controvert or explain his prior conviction. While the record is vague as to whether the court secured a presentence report as mandated by GPL 390.20, even had it failed to do so, the proper remedy would be a vacatur of the sentence and a remand for resentencing only, not vacatur of the plea
(People v Szalasny, 67 AD2d 801 ;
People v Whitaker, 43 AD2d 935 ). Moreover, since resentencing would not affect immediate release from custody, habeas corpus relief is not available (see
People ex rel. Douglas v Vincent, 50 NY2d 901 , 903). Finally, as to petitioner’s contention that counsel failed to prosecute an appeal from the subject conviction as promised, GPL article 440 is available to consider the adequacy of the legal representation he received (see
People v Martin, 52 AD2d 988 ). The judgment should be reversed, and the petition for writ of habeas corpus dismissed. Judgment reversed, on the law and the facts, and petition dismissed, without costs. Kane, J. P., Mikoll, Yesawich, Jr., Weiss and Levine, JJ., concur.