Shortening path