update d_sqrtrwt as well as d_weights