work on little endian class