hack for showing the graph, changes made in initialize function