card and class update