Change card to card_def