update external ref length