set path length