changed up buildGraphs parameters