correct for bug - last batch never gets data pulled