clearBuffer