improve formula for ols