simplified distance between points