fix for uniqueness check