reverse the paths that 'walk' outputs