small change to first_occurrence