better diagnostics example