restore randwalk_pruning