refactor occurrences