clear buffers after use