updated card class