complete the socket first part