updating the graph program to include standard error