switch to hamming