changed card info to card constructor