update diagnostics