merge of nodes working