updated ddp sample