buffer editting