batch-decoder/re-encoder