made pd patch more concise