update cardinality of message