add memory buffer