added update attributes