updated the dct code.