modifies the checksum calculation