parses through rule_s