update external id