adding w1d2 and adjusted best and max edge