add modified bagging procedure