revert batch handle code