Inventory write-down

Hey everyone,

Can you please explain the below question. i dont get why we have to subtract inventory writedown from COGS

In converting a statement of cash flows from the indirect to the direct method, which of the following adjustments should be made for a decrease in unearned revenue when calculating cash collected from customers, and for an inventory writedown (when market value is less than cost) when calculating cash payments to suppliers?