add first occurrence analysis