use unified distance methods for calculating length