make the send data a structure