write_attributes changes