add text identifiers for nodes