saves to graph properly