added 'calculation' of error bars