use distance in data association