The parties agree that this case should be remanded with direction that the defendant be afforded notice and the opportunity to be heard upon the imposition of costs. Accordingly, we vacate the trial court’s imposition of costs, which is the sole basis for *887this appeal, and remand with the above direction.
That it took this appeal, and its cost in legal, clerical and judicial time, to correct this error, is lamentable.
GLICKSTEIN, WALDEN and STONE, JJ., concur.