Improved hamming