add am class diag