things are working well for all_f, now need to run in batches