add update_account method
fix according comment in pull request