added card type lookup
corrected lookup