changes to card class