updated the dp