add MiniBuffer
implement the MiniBuffer