new circular buffer object
small fix in circular buffer