finished partition, changed names in deleteNode