correct snippet for pmd