Why do we need the encoder in this case?