Don't see that anyone mentioned it but
If you reinvested the dividends and bought more stock or shares you need to add the dividends to your cost basis so you don't pay tax on them again. A reinvested dividend is really 2 transactions, a dividend and a buy. You got a Dividend and then you bought more shares. Same with any Capital Gain distributions.