prune link by link