example of how to do endian