updated command for cardinality
removed debugging