added update name code