Fixed issue with garbage collection
added dft