add reset() before sending data