add math to graph