ch14 encoder implemented