distance metrics section complete