use @buffer.clear