fixed failure, 3D distance added