working on batch_stats