added fix for card type