finding endian