add clearbuf