data handling in buffers