added batches for increased performance