modified card class