added occurrencethreshold