push
add outputGraph function