fixed distance, added pathlength