added update_attribute