added CRC code