refactoring of the CRC calculation