GAve a better name to distance calculating method