made the buffer sharing