adding the prefix encoding for the rule