filled in removePeer logic