added separate method of dct