get the variable and the rule using the same name