add diagnostic class