removed bug with dxdz