changes for graphs