now parses cardinality file