checksum and swapped array