batch code