updating socket