added error bars to plots