changed socket_make definition