added var to lastDividend