edited checksum check