added update account function