change the cards into value