path lengths