simplified the logic of determining the credit card's type