new cardinality.h/.c files