updated makeCheckSum