modify Buffer