changing byte order to little endian