fixed client server data transfer, but hamming is not correct