change of some function in buffer manager