checksum was not working correctly