hamming update