modified crctest.c