costomized revert-buffer