moved Dinitial, Dfinal, and dD to run