clear + reserve for buffer