insert pool inside batch