removed parameter from diagnostics hook