add print but shown as directed graph, need fix