make pd deterministic