updated on graph generating for error bars