chagen in DCT generate function