First thing that I noticed is that you're not using the $did identifier correctly, you're missing the period (.) which seperates a property from the identifier.

$did($dname,ID).property