added different destance metrics