change Sock to SockSerialized to for function param