init batch