improvements to graphing