Path simplification