adding hamming