rsqrtD is revised