add update Attribute buffer function