replace unordered set with list in the dag