finished DFT