fixing up batch