added option to identify occurrences