change conn to tcpconn