enable erase-buffer function