DAG_first attempt