successful distributed version(sometime socket broken)