edited encoding ch1