add write after changed attributes