changes to distance annotations calculation