add labels to nodes