add attribute to node