added pathway distance computation