tested and corrected all methods in RuleSet