update attributes.