tenth commit... adjust DP calculations.