added a back and forth on the buffers