fixing up dft self
base cases