refact in graph dup