added Encoder