adding distance methods
merging