changed the graph back to original state