generating crc