simplifying path