implemented get_card_total