modify receiveBlock in Clients.cpp