update hamming