removed weighted distance