updated Peer.cpp