added attributes to nodes