update name to id