improve pathtracking in linkList