added memory stuff to tdp