Added d to the solve2 functions