graph needs to be set