added agent Hamming