encoders work