changed struct format to network from big-endian