add condition of checking the path return by walker in weightingfunction
found target or not