better ${D} validator