more on cards.py