add constrait

only initiate new dfs when it is not a sink
auto