clearing buffers