revert the encoder