added partial Encoder