additional functions from card.h