adding distance measures