correcting diagnostics