changed brackets to braces for with_mean/with_std lines