updating dp.txt