saving socket value