refactoring, set attribute name, node name