modify inserting dep_count from ConnectedSharedChan to task