Replace DAG with name