fix modified twiddle