added dct
code clean up