re-compiled after clear_cardtype