renamed ID to id2 and will convert to id after that.  tdm and dtm are now true tm objects