update Buffer