add generate occurrences partial