clear buffer