fixed error in estimate_sub, estimator was not defined