update factor code