implemented XFT again