add diag classe + correct use cas

:)