function renaming in metricknn