Why reinvesting gains matters