get the right checksum