The JOIN operation (deps) produces duplicate records with depcnt= 0, causing miscalculations records. sort_deps and ddup_deps clean these duplicate records.