refactoring, extracted method parse_rules