use when='both' for mboost