batch code updated