revise bufferManager