rewrote getCard()