The Ultimate Troubleshooting Playbook

Windows BSOD Diagnostics.Which crash evidence should you check next?

Use crash history, dumps, and hardware checks to choose the least disruptive supported repair.

Ultimate Windows BSOD & Stop Code Diagnostic Playbook

Diagnostic steps and recovery commands are verified against official vendor documentation and KB references. Confirm backups before running high-risk system resets or disk edits.

01 / Fast triage

Where to start
right now.

Follow the verified repair sequence

Start with read-only evidence checks; stop repair attempts when storage failure threatens your files.

02 / Symptom triage — start here

Identify your failure symptom and run the first check.

Tier 1: Safe Check

The PC restarts before you can read the stop screen.

Likely cause: A recorded bug check or another unexpected shutdown needs separating.

60-second check: Run perfmon /rel and inspect the latest failure.

Jump to fix sequence
Tier 1: Safe Check

Different stop codes appear during unrelated tasks.

Likely cause: Driver corruption or unstable hardware can damage different memory locations.

60-second check: Locate dumps with Get-ChildItem -Path "$env:SystemRoot\Minidump","$env:SystemRoot\MEMORY.DMP" -ErrorAction SilentlyContinue.

Jump to fix sequence
Tier 1: Safe Check

Crashes began after a driver installation.

Likely cause: The changed driver is a lead when timing and dump evidence agree.

60-second check: Run devmgmt.msc and inspect the relevant device's Driver tab.

Jump to fix sequence
Tier 1: Safe Check

Games or graphics workloads trigger crashes.

Likely cause: Display-driver faults, hardware instability, power, or heat need investigation.

60-second check: Run perfmon /rel and inspect technical details for repeated display-related failures.

Jump to fix sequence
Tier 1: Safe Check

Freezes accompany storage warnings.

Likely cause: Storage-path faults or file-system corruption may threaten data.

60-second check: Run eventvwr.msc and inspect System events before starting disk repairs.

Jump to fix sequence
Tier 1: Safe Check

Windows reports a crash but no minidump exists.

Likely cause: Dump type, destination, space, paging configuration, or capture failure can explain the absence.

60-second check: Run sysdm.cpl and inspect Advanced > Startup and Recovery > Settings.

Jump to fix sequence
Tier 1: Safe Check

Only Kernel-Power Event ID 41 appears.

Likely cause: Windows recorded an unclean restart; the underlying cause remains undetermined.

60-second check: Run eventvwr.msc and inspect surrounding events for a bug-check message.

Jump to fix sequence
Tier 1: Safe Check

Windows repeatedly stops before reaching the desktop.

Likely cause: Startup, servicing, storage, or driver faults require recovery-context checks.

60-second check: If WinRE is available, inspect Advanced options; use diskpart, list vol, then exit only to inspect volumes.

Jump to fix sequence

03 / Tiered repair sequence

Run safe diagnostics before higher-impact repairs.

Tier 1 Low Risk 5 min to begin

Fast Safe Checks

Inspect crash timing, events, and existing dumps before changing Windows.

  1. Run perfmon /rel.
  2. Run eventvwr.msc and inspect Windows Logs > System.
  3. Run Get-ChildItem -Path "$env:SystemRoot\Minidump","$env:SystemRoot\MEMORY.DMP" -ErrorAction SilentlyContinue in PowerShell.
Tier 2 Medium Risk Varies; repairs and restarts can take substantially longer than checks

Targeted Repairs

Change an implicated driver or repair demonstrated corruption after saving work.

  1. Use devmgmt.msc to roll back a driver when crash timing and dump evidence support it.
  2. From an elevated Command Prompt, run DISM.exe /Online /Cleanup-Image /RestoreHealth.
  3. After DISM succeeds, run sfc.exe /scannow.
  4. Back up before using chkdsk C: /f when an NTFS scan indicates repair is needed.
Tier 3 High Risk / Backup First Varies by recovery option and storage condition

Recovery Operations

Prepare backups and the BitLocker recovery key before offline repairs or recovery changes.

  1. In WinRE Command Prompt, run diskpart, list vol, and exit separately.
  2. Inspect the candidate installation with dir D:\Windows; D: is only an example.
  3. Select Startup Repair, System Restore, or Uninstall Updates according to the failure.
  4. Use DISM.exe /Image:D:\ /Cleanup-Image /RestoreHealth only after confirming D: is the offline Windows volume and repair-source requirements.

04 / Error & Event ID lookup

Search exact error codes, stop codes & verified fixes.

Error / Stop CodeWhat It MeansVerified Fix
IRQL_NOT_LESS_OR_EQUAL — 0x0000000A Kernel code accessed invalid or pageable memory at an inappropriate interrupt level. Compare dumps with !analyze -v; investigate repeated driver evidence and memory instability.
DRIVER_IRQL_NOT_LESS_OR_EQUAL — 0x000000D1 A kernel driver made an invalid memory access at an inappropriate interrupt level. Use devmgmt.msc to inspect and, when justified, roll back the implicated driver.
MEMORY_MANAGEMENT — 0x0000001A Windows detected a severe memory-management inconsistency. Inspect bug-check parameters; run mdsched.exe after saving work and review results.
PAGE_FAULT_IN_NONPAGED_AREA — 0x00000050 An invalid system-memory reference occurred. Compare driver evidence and memory results; use chkdsk C: /scan only when storage conditions permit.
CRITICAL_PROCESS_DIED — 0x000000EF A critical system process terminated. Check preceding storage events; use DISM.exe /Online /Cleanup-Image /RestoreHealth followed by sfc.exe /scannow when corruption is implicated.
WHEA_UNCORRECTABLE_ERROR — 0x00000124 Windows Hardware Error Architecture reported an uncorrectable hardware error. Inspect the error record and use model-specific manufacturer hardware diagnostics.
VIDEO_TDR_FAILURE — 0x00000116 Graphics timeout recovery failed. Compare display-driver evidence across dumps; roll back a matching recent graphics-driver change.
DPC_WATCHDOG_VIOLATION — 0x00000133 An interrupt routine, deferred procedure call, or elevated-interrupt-level period exceeded its limit. Inspect parameters and stacks with !analyze -v; target the supported driver implicated by evidence.
INACCESSIBLE_BOOT_DEVICE — 0x0000007B Windows lost access to its boot device during startup. Use the matching WinRE recovery option; confirm volumes with diskpart and avoid arbitrary controller-mode changes.
SYSTEM_SERVICE_EXCEPTION — 0x0000003B An exception occurred during a system service routine. Inspect exception details with !analyze -v; reverse an implicated driver change or investigate corruption.
Event ID 1001 Provider-dependent event; a bug-check message can include the stop code and dump path. Run eventvwr.msc and read the provider and complete message before classifying the event.
Kernel-Power Event ID 41 Windows restarted without a clean shutdown. Inspect surrounding events and dumps; this event alone does not identify a faulty power supply.

05 / Complete playbook

Detailed repair walkthroughs.

Follow the verified command-line, Recovery Environment, and subsystem procedures below in order of safety.

Windows BSOD crashes are frustrating, especially when each restart shows a different stop code. Start with crash history and dumps, then choose the least disruptive repair the evidence supports.

Fix #1: Start Windows BSOD troubleshooting with read-only checks

Illustrated a desktop monitor showing Windows Reliability Monitor in a quiet office setup.
Illustrated a desktop monitor showing Windows Reliability Monitor in a quiet office setup.

Prerequisites: Windows reaches the desktop; administrator access for protected logs or files.

Risk level: Tier 1, low. You can usually start these checks within 60 seconds, but tests and analysis take longer.

Check a restart you couldn’t read

  • Press Win + R and run perfmon /rel.
  • Select the failure nearest the restart.
  • Open View technical details, when available.

Look for a recorded Windows failure, stop code, or related install. Reliability Monitor helps show when things happened. A nearby driver install is a useful lead when dumps point to it too.

Read the recorded bug check

  • Open Windows PowerShell using Run as administrator.
  • Run Get-WinEvent -FilterHashtable @{LogName='System';Id=1001} -MaxEvents 10 | Select-Object TimeCreated,ProviderName,Message | Format-List.
  • Read each event’s provider and full message.

Look for a message that describes a bug check. It may include the code and dump location. Event ID 1001 means different things for different providers.

For nearby events, run eventvwr.msc and open Windows Logs > System. Kernel-Power Event ID 41 records an unclean restart. It doesn’t prove a bad power supply.

Microsoft’s Event ID 41 unexpected restart troubleshooting guide explains how Windows logs Stop error (bug check) codes inside Event ID 41 alongside Kernel-Power data.

Choose the next check

  • Match your symptom to this quick reference.
  • Follow that path before changing unrelated settings.
SymptomFirst checkNext direction
Restart hides the stop codeperfmon /relRead bug-check events
Different codes across crashesLocate existing dumpsCompare stacks and memory evidence
Crashes follow a driver installationdevmgmt.mscConsider targeted rollback
Graphics workloads trigger crashesReliability Monitor detailsInvestigate display-driver evidence
Freezes accompany storage warningseventvwr.mscProtect data before disk repair
No minidump appearsStartup and Recovery settingsCheck dump type and destination
Windows won’t reach the desktopWinRE Advanced optionsIdentify volumes before offline work

Run winver to check your Windows release. Settings > System > About also shows the Windows edition and release.

This playbook covers Windows 10 and Windows 11. Per Microsoft’s Windows 10 Home and Pro lifecycle documentation, version 22H2 is the final Windows 10 release and Windows 10 Home and Pro reached end of support on October 14, 2025, while existing LTSC releases continue receiving updates based on their specific lifecycles.

Fix #2: Locate crash dumps and compare the evidence

Illustrated a PC desktop screen showing Windows Event Viewer with crash dump logs open.
Illustrated a PC desktop screen showing Windows Event Viewer with crash dump logs open.

Prerequisites: Access to the Windows installation; you may need administrator access to copy dumps.

Risk level: Tier 1 for inspection.

  • In PowerShell, run Get-ChildItem -Path "$env:SystemRoot\Minidump","$env:SystemRoot\MEMORY.DMP" -ErrorAction SilentlyContinue.
  • Compare file timestamps with the crashes in Reliability Monitor.
  • Copy relevant dumps to a protected working folder before later crashes overwrite them.

Per Microsoft’s Small Memory Dump documentation and dump configuration documentation, small memory dumps are stored in %SystemRoot%\Minidump, while full memory dump files default to %SystemRoot%\Memory.dmp unless configured to another path. Windows may write no dump file if crash dumps are disabled, disk space or paging-file requirements are unmet, or capture fails; files in only one location can match your chosen dump type.

If neither location has useful evidence:

  • Run sysdm.cpl.
  • Open Advanced > Startup and Recovery > Settings.
  • Inspect Write debugging information and the displayed destination.
  • If appropriate, select Automatic memory dump.
  • Restart after changing the setting.

Changing capture settings is a Tier 2 change. Check free space with Get-PSDrive -PSProvider FileSystem. Dump capture also needs a suitable paging file or dedicated dump setup.

Microsoft’s dump configuration documentation explains these needs. Its complete-dump sizing advice applies to Windows Server. Don’t apply it as a blanket setting for Windows clients.

To examine an existing dump:

  • Install WinDbg from the Microsoft Store, the direct installer, or winget install Microsoft.WinDbg via Microsoft’s Windows debugger installation documentation.
  • Open the dump in WinDbg.
  • Run .symfix in the debugger command window.
  • Run .reload.
  • Run !analyze -v.

These are WinDbg commands, separate from PowerShell and Command Prompt. Internet access helps retrieve Microsoft symbols, which help the debugger read code.

Inspect the bug-check arguments, stack, MODULE_NAME, IMAGE_NAME, and FAILURE_BUCKET_ID. The stack shows the chain of code calls. Symbol errors or limited dump contents make the findings less certain.

ntoskrnl.exe points to Windows kernel code involved in the failure. A process name shows what was running at that point. Neither proves the cause. A named third-party module is also just a lead. Check its version, role in the stack, and presence in other dumps before blaming it.

Compare several dumps when you have them. The same driver appearing across crashes is stronger evidence than one filename. Damage in different modules can reflect earlier corruption caused by hardware or driver code.

Dumps can contain sensitive memory contents. Share them only through a suitable private support channel.

Fix #3: Match the stop code to an evidence-based repair

Prerequisites: Exact bug-check code and, ideally, its parameters.

Risk level: Tier 1 for interpretation; follow the stated repair tier afterward.

A stop code describes the condition that stopped Windows. Its parameters provide more detail. The paths below follow Microsoft’s WinDbg kernel-mode dump analysis documentation, but no stop code or dump guarantees a component diagnosis.

Illustrated a Windows desktop monitor displaying stop code analysis with memory and driver info.
Illustrated a Windows desktop monitor displaying stop code analysis with memory and driver info.

Investigate memory and driver corruption

  • Match the complete hexadecimal code.
  • Compare parameters and stacks across available dumps.
  • Choose driver rollback or memory testing based on the combined evidence.
Stop codeMeaningSupported next direction
IRQL_NOT_LESS_OR_EQUAL, 0x0000000AInvalid or pageable memory accessed at an inappropriate interrupt levelCheck repeated driver evidence and memory instability
DRIVER_IRQL_NOT_LESS_OR_EQUAL, 0x000000D1A driver made an invalid memory access at an inappropriate interrupt levelCheck the device involved and its driver version
MEMORY_MANAGEMENT, 0x0000001AA severe fault in how Windows manages memoryInterpret parameters; test memory without assuming defective RAM
PAGE_FAULT_IN_NONPAGED_AREA, 0x00000050Invalid system-memory referenceCompare driver, memory, and relevant storage evidence
SYSTEM_SERVICE_EXCEPTION, 0x0000003BException during a system service routineInspect exception details and stack before blaming the active application
Illustrated a desktop monitor showing stop code analysis focused on graphics and storage hardware errors.
Illustrated a desktop monitor showing stop code analysis focused on graphics and storage hardware errors.

Investigate graphics, storage, and hardware failures

  • Match the code to the part of Windows involved.
  • Check nearby events and recent changes.
  • Use the matching repair or recovery path.
Stop codeMeaningSupported next direction
CRITICAL_PROCESS_DIED, 0x000000EFA critical system process endedCheck earlier storage events and Windows corruption
WHEA_UNCORRECTABLE_ERROR, 0x00000124A hardware error that couldn’t be corrected was reportedInspect the hardware error record and manufacturer diagnostics
VIDEO_TDR_FAILURE, 0x00000116Graphics timeout recovery failedCompare display-driver changes, dumps, and hardware evidence
DPC_WATCHDOG_VIOLATION, 0x00000133Kernel execution exceeded a watchdog limitInspect parameters and driver stacks involved
INACCESSIBLE_BOOT_DEVICE, 0x0000007BWindows couldn’t access its boot deviceCheck storage changes and use appropriate WinRE recovery

Don’t substitute a generic Win32 error explanation for a bug-check code. They’re different code families.

Fix #4: Reverse a driver change supported by the evidence

Illustrated a desktop PC screen open to Device Manager highlighting recently installed drivers.
Illustrated a desktop PC screen open to Device Manager highlighting recently installed drivers.

Prerequisites: Saved work, administrator access, and a supported replacement package if needed.

Risk level: Tier 2, medium. Display, network, or device access can be interrupted.

  • Run devmgmt.msc.
  • Open the device’s Properties.
  • Inspect Driver for its provider, date, and version.
  • Compare its install date with Reliability Monitor and dump evidence.
  • Select Roll Back Driver if available and the crashes followed that update.
  • Restart if requested.

Rollback is the stronger first choice when a stable system fails right after a driver change. Another update adds uncertainty unless it addresses the device involved.

If rollback isn’t available, get the relevant supported package from the PC or device manufacturer. Don’t delete .sys files manually.

Repeated VIDEO_TDR_FAILURE dumps that involve the display driver support this focused path. A game triggering a crash doesn’t prove the GPU failed. Hardware, power, and heat remain possible causes.

For DPC_WATCHDOG_VIOLATION, avoid arbitrary SATA-controller swaps. The parameters and stack must support changing that driver.

I’d skip Driver Verifier unless an experienced troubleshooter has a specific driver hypothesis and a recovery plan. It deliberately stresses drivers and can cause crashes or boot loops. First, prepare backups, the BitLocker recovery key, working WinRE access, and a documented recovery procedure. Setup and recovery commands aren’t included here. Use dedicated Microsoft Driver Verifier documentation before proceeding.

Fix #5: Separate RAM instability from driver corruption

Illustrated a desktop PC workstation showing Windows Memory Diagnostic running on screen.
Illustrated a desktop PC workstation showing Windows Memory Diagnostic running on screen.

Prerequisites: Saved work and time for a restart and test.

Risk level: Low for the test itself; internal hardware work requires model-specific precautions.

  • Run mdsched.exe.
  • Choose the restart option that fits your saved-work situation.
  • Allow Windows Memory Diagnostic to complete.
  • After Windows starts, run Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Microsoft-Windows-MemoryDiagnostics-Results'} -MaxEvents 5 | Select-Object TimeCreated,Message | Format-List.

The result message reports what the test found. Read it before moving on. A completed restart doesn’t mean the test passed.

Does MEMORY_MANAGEMENT prove RAM is defective? No. A driver can corrupt memory before Windows detects the damage. A passing memory test also doesn’t rule out hardware faults that come and go.

If errors appear, or crashes continue across unrelated tasks:

  • Run the manufacturer’s model-specific hardware tests.
  • Shut down before disconnecting newly added, nonessential external hardware.
  • Retest the original workload.
  • Reconnect external devices one at a time between tests.

Dell’s BSOD guidance includes manufacturer test paths. Other PCs need their own manufacturer’s instructions.

Internal RAM, GPU, cable, or storage checks require the model’s service procedure and power precautions. Don’t attempt to remove soldered parts or open a power supply.

Review overclocking or undervolting only against documented manufacturer settings. Blind firmware resets can change storage and boot settings, causing another failure.

Fix #6: Repair confirmed Windows or file-system corruption

Illustrated a desktop monitor showing a Windows system file checker scan in progress.
Illustrated a desktop monitor showing a Windows system file checker scan in progress.

Prerequisites: Administrator access, saved work, and backups before disk repair.

Risk level: Tier 2. Stop here if the drive disappears, repeatedly fails I/O, or makes abnormal mechanical noises.

If a suspect drive holds irreplaceable files, put data recovery first. Long scans and repeated repairs create more storage activity.

For Windows corruption on a system that still responds:

  • Open Command Prompt using Run as administrator.
  • Run DISM.exe /Online /Cleanup-Image /RestoreHealth.
  • Wait for successful completion.
  • Run sfc.exe /scannow.
  • Read the final result before choosing another repair.

DISM repairs the component store, which holds files used to service Windows. SFC checks protected system files. Results show whether repairs succeeded, no integrity violations were found, or damage remains.

DISM can need internet access or a suitable repair source. If it fails, address its reported error before repeating the sequence. Microsoft’s Windows image repair documentation says you can use the /Source argument with /RestoreHealth to specify additional repair source locations, and /LimitAccess to prevent DISM from using Windows Update as a repair source for online images.

For suspected file-system corruption on an NTFS Windows volume mounted as C::

  • Run chkdsk C: /scan from an elevated Command Prompt, provided serious drive-failure symptoms are absent.
  • Back up important files if repair is indicated.
  • Run chkdsk C: /f.
  • Accept restart scheduling only when you’re ready for downtime.

/scan performs an online NTFS scan. /f repairs file-system errors and may need sole access to the volume.

chkdsk C: /r also searches for bad sectors and attempts to recover readable data. It includes /f and can cause long periods of disk activity. I’d reserve it for a specific recovery need after protecting data.

Microsoft’s CHKDSK reference explains these differences. A clean file system doesn’t prove the drive hardware is healthy.

Fix #7: Recover startup through WinRE

Illustrated a desktop monitor displaying Windows Recovery Environment options screen.
Illustrated a desktop monitor displaying Windows Recovery Environment options screen.

Prerequisites: Backups where possible, the BitLocker recovery key, and access to Windows Recovery Environment (WinRE).

Risk level: Tier 3, high for recovery changes. Reaching WinRE can take longer than 60 seconds.

Prepare encryption and identify Windows

  • If Windows still starts, hold Shift while selecting Power > Restart.
  • Open Troubleshoot > Advanced options > Command Prompt.
  • Provide the BitLocker recovery key if requested.
  • Run diskpart.
  • Run list vol.
  • Run exit.
  • Inspect a candidate installation with dir D:\Windows, substituting the candidate letter.

WinRE drive letters can differ from those in normal Windows. A plausible volume label alone doesn’t prove you’ve found the right installation. You must gain access to a locked encrypted volume before servicing it.

Choose recovery that matches the failure

  • Use Startup Repair when Windows cannot start.
  • Use Uninstall Updates when the startup failure follows a Windows update.
  • Consider System Restore when a suitable restore point exists.

These options have different effects. Review the chosen operation before confirming it, especially on a managed work PC.

For INACCESSIBLE_BOOT_DEVICE, check recent storage-driver, firmware, or controller changes. Don’t cycle through controller modes to see what works. The stop code alone doesn’t prove boot files are damaged.

Routine boot-record repairs add risk and won’t resolve every storage-access failure.

Target offline servicing carefully

  • Confirm the offline Windows volume and its encryption state.
  • Confirm access to a suitable repair source if required.
  • Only when D: is positively identified, run DISM.exe /Image:D:\ /Cleanup-Image /RestoreHealth.
  • Read the completion result before restarting.

For this procedure, run the command in WinRE Command Prompt. /Online targets the environment that’s running now. It won’t target the installed offline Windows copy.

Offline SFC also needs the correct Windows and boot-files paths. Those paths can differ. Don’t paste a recipe that assumes both are D:.

Fix #8: Confirm improvement and escalate persistent failures

Illustrated a desktop monitor showing a detailed Windows event log summary in a troubleshooting workspace.
Illustrated a desktop monitor showing a detailed Windows event log summary in a troubleshooting workspace.

Prerequisites: A completed targeted repair and saved crash evidence.

Risk level: Low unless the original trigger threatens storage or unsaved work.

  • Repeat the original crash trigger after saving work.
  • Resume the normal tasks that previously failed.
  • Check perfmon /rel for new failures.
  • Compare any new dumps with the earlier set.

No set test period proves an intermittent fault is gone. Change one variable at a time so you can judge what helped.

If crashes persist, seek support with the stop codes, private dump files, test results, and driver versions. Put hardware service first for failed hardware tests or repeated WHEA evidence. Put data recovery first for disappearing drives, abnormal mechanical noises, or repeated unreadable files.

Use Fix #4’s targeted rollback when timing and repeated dumps point to a driver. Stick with evidence collection when that link is weak. Choose hardware service or data recovery when failed tests or storage warning signs call for it.

HDG Deep-Dive Fix Library

Targeted fixes for specific error codes & subsystems.

Open our dedicated single-issue repair walkthroughs for specific errors, drivers, and system components.

06 / Diagnostic scope

Subsystem coverage
& escalation rules.

Illustrated Windows BSOD Diagnostics shown on its own
Illustrated Windows BSOD Diagnostics shown on its own

Windows 11/10 Stop Code triage, Reliability Monitor, WinDbg Preview, and Windows Memory Diagnostic

Windows BSOD Diagnostics

A Windows 10/11 troubleshooting workflow; stop codes identify failure conditions rather than guaranteed causes.

Start this track when
Recurring crashes where Windows starts or an existing dump is accessible.
Stop & escalate if
A drive disappears, makes abnormal mechanical noises, or contains irreplaceable files without a backup.

07 / Operational safety

Safe safeguards
vs. recovery risks.

Illustrated two desktop monitors side by side showing different Windows BSOD stop codes in an IT workspace.
Illustrated two desktop monitors side by side showing different Windows BSOD stop codes in an IT workspace.

Windows BSOD Diagnostics

Non-destructive wins & checks

  • Starts with evidence-preserving checks
  • Separates driver, memory, storage, and recovery paths

Prerequisites & data-loss risks

  • Useful dumps may be unavailable
  • Intermittent faults can survive diagnostic tests

08 / Escalation & fallback

When standard fixes fail:
recovery paths.

Manufacturer preboot diagnostics

Use model-specific hardware tests when Windows cannot remain running.

Professional data recovery

Prioritize file recovery when a failing drive contains irreplaceable data.

Verification policy

Documented fixes only.

Verified against official technical documentation

Based on Microsoft stop-code references, client troubleshooting documentation, and Dell diagnostic guidance; this is not a hands-on review.

Official utilities & portals

Official documentation & recovery tools.

Download genuine installers, recovery media, and official reference documentation directly from the vendor.

Microsoft

Windows BSOD Diagnostics

Windows 11/10 Stop Code triage, Reliability Monitor, WinDbg Preview, and Windows Memory Diagnostic

Open at Microsoft

Vendor, documentation, and direct storefront links without an affiliate program are non-affiliate references.