cleanup batch_action method