preparing batch for reference data