[PD] encoder for gem question