add names to unnamed nodes