off by 1 error
buffer needs to be empty
bigger history
merge