added pathlength