calc distance & set target