improvements for BufferStorage

improvements for BufferStorage