updated version for the card type addition