updated checksum calculation
updated checksum calculation