added dp attempt