cardtype init