all distances changed to 2D