improve unique in collection constraint