added checksum def