added CRC decoder