cube: check for duplicates