return the fraction of the path as well