calculate path updates