developing hamming dist