change seqnumber counter from little to big endian