cleaned up the output of cardinality