added bagging