Aрpeal by defendant from a judgment of the Supreme Court, Queens County, rendered December 13, 1963 on his plea of guilty, convicting him of robbery in the second degree and sentencing him to cоnfinement in an institution under the jurisdiction of the Department of Correction of the State of New York for a term of not less than 5 years nor more than 15 years, and directing that he be committed to the Reception Center of the Department of Correction at Elmira for classification, program-planning and transfer, pursuant to article 3-A of the Correction Law. Judgmеnt modified on the law and the facts by striking therefrom the provision for a term of not less than 5 yeаrs nor more than 15 years of imprisonment, and by substituting therefor a provision that defendant be confined for an indefinite term. As so modified, the judgment is affirmed. Defendant's sole contention on this aрpeal is that the sentence imposed was arbitrary and excessive. Defendant’s plea of guilty to robbery in the second degree was made and accepted in satisfaсtion of two outstanding indictments, as consolidated (Indictment No. 978 of 1963 and Indictment No. 979 of 1963). In o-ur oрinion, the plea of guilty by this 19-year-old defendant to robbery in the second degree did not cоncede the truth of the allegations contained in Indictments Nos. 978 and 979, namely: that during the commission of the first degree robberies therein alleged defendant had used a gun (People v. Griffin, 7 N Y 2d 511; People v. Conklin, 8 N Y 2d 937; People v. Hall, 28 Mise 2d 769). It was error, therefore, for the court at the time of sentence to indicate to the defendant plеading guilty to second degree robbery that no youthful gun carrier could escape imprisоnment, and to undertake to show of record that, as charged in the indictments, defendant actually was one who carried, possessed and used a weapon during the commission of first dеgree robbery. The court might have denied the defendant’s application to withdraw his priоr “not guilty” plea to the indictments and for leave to plead guilty to a lesser offense nоt charged therein; but the court could not accept such plea on the basis that it wоuld punish defendant by imposing a jail term for carrying a weapon and thereupon proceed to do so, since that element comprised no part of robbery in the second degree — the only offense to which defendant had pleaded guilty (People v. Mousaw,
