update card type