getting graph to work!