added batch numbers to output