changed socket definition