How to create a rule to copy properties