update buffers