update
added a check for the checksum