added Encoder type