removed a mistaken +1 in the calculation of the checksum