adding different distance-measures