update to buffer