modify peer.c