remove useless buffer