add error bars to histogram