added filterByOccurences method