updated estimators.h (if/else added)