simplify for rules variable keys