update of simple_node_classifier, removing re and changing ordering