add hamming