minor improvements on batching for labels