update pd and of