how does DFT really work?