added error bars to the plot