overlap training and batch building