added error bars for regression