add functions for a boosting algorithm for WA models