pathlenghth