change socket variable