tweaks beng's checksum function