do without extra variable in pathlist processing