Taxation of write-offs and arrangements