update to card class