sending right data format over the wire