removed serial output out of the send callback function