remove ENDIAN stuff