def search_rule_by_id(self, ruleID) -> Rule:
        """ searches a rule by given id
        
        Args:
          ruleID(str): the rule to search for
        
        Returns
          the rule object or None if it couldn't find a rule
        """
        for r in self.rules:
            if r.id == ruleID:
                return r
        return None