generate the checksum