changes to buffer