add a diagnostic