update class diag