modify the type of the encoder field