factor in location of target when calculating position