cons for list and multiset finished