deleting obsolete endian code