implemented multi-node selection, in order to merge them