adapt rules to the new ontology