improve last commit a bit

is ```card_type``` used somewhere?