Rewrite -- before pruning