stage 1 encode no prune