fixed the socket variable name