NODE-SPLITTING function