fixed minimalRules maxRuleSize issue; added variable