implement node attr.