implemented node insertion in the TDM