modify send code