added 3d dist map