update twin_id