modify the socket