cards.c update