finish first cut of dependency analysis