new version of GenerateRpd