modify por encoder for new concatenated encoding method