updated card.name to card.Name