removing endian from header to remove incorrect allocation