got rid of card as a class