crc calculations fix